Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: Shared/PluginTabBase.cpp

Issue 9998007: Initial libadblockplus integration (Closed)
Patch Set: More integration, reflecting latest libadblockplus changes Created April 9, 2013, 5:48 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Shared/PluginTabBase.h ('k') | Shared/PluginUserSettings.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Shared/PluginTabBase.cpp
===================================================================
--- a/Shared/PluginTabBase.cpp
+++ b/Shared/PluginTabBase.cpp
@@ -29,6 +29,8 @@
CPluginTabBase::CPluginTabBase(CPluginClass* plugin) : m_plugin(plugin), m_isActivated(false)
{
+ m_filter = std::auto_ptr<CPluginFilter>(new CPluginFilter());
+
CPluginClient* client = CPluginClient::GetInstance();
if (client->GetIEVersion() < 10)
{
@@ -132,6 +134,9 @@
ClearFrameCache(GetDocumentDomain());
#endif
+ std::string domainString = CT2A(GetDocumentDomain());
+ m_filter->LoadHideFilters(CPluginClient::GetInstance()->GetFilterEngine()->GetElementHidingSelectors(domainString));
+
#ifdef SUPPORT_DOM_TRAVERSER
m_traverser->ClearCache();
#endif
@@ -412,7 +417,6 @@
if (s_filterVersion != newFilterVersion)
{
s_filterVersion = newFilterVersion;
- client->LoadFilters();
isChanged = true;
}
#endif
« no previous file with comments | « Shared/PluginTabBase.h ('k') | Shared/PluginUserSettings.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld