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

Unified Diff: Shared/PluginFilter.cpp

Issue 10580043: Run a single FilterEngine instance in a separate process (Closed)
Patch Set: Addressed all issues Created May 23, 2013, 12:29 p.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
Index: Shared/PluginFilter.cpp
===================================================================
--- a/Shared/PluginFilter.cpp
+++ b/Shared/PluginFilter.cpp
@@ -803,7 +803,6 @@
}
CPluginClient* client = CPluginClient::GetInstance();
- AdblockPlus::FilterEngine* filterEngine = client->GetFilterEngine();
//TODO: Make sure if the content type names are in sync with libadblockplus
std::string contentTypeString = CT2A(type, CP_UTF8);
@@ -813,7 +812,7 @@
std::string domainMb = CT2CA(domain);
- if (filterEngine->Matches(url, contentTypeString, domainMb))
+ if (client->Matches(url, contentTypeString, domainMb))
{
if (addDebug)
{

Powered by Google App Engine
This is Rietveld