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

Unified Diff: src/engine/Main.cpp

Issue 4784041706389504: Issue 1183 - Fix Acceptable Ads hiding (Closed)
Patch Set: Created Aug. 8, 2014, 3:51 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
« no previous file with comments | « no previous file | src/plugin/AdblockPlusClient.h » ('j') | src/plugin/PluginTabBase.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/engine/Main.cpp
===================================================================
--- a/src/engine/Main.cpp
+++ b/src/engine/Main.cpp
@@ -96,6 +96,15 @@
response << (filter && filter->GetType() != AdblockPlus::Filter::TYPE_EXCEPTION);
break;
}
+ case Communication::PROC_HIDING_ENABLED_ON_DOMAIN:
Felix Dahlke 2014/08/08 16:11:35 Since this is conceptually very similar to PROC_IS
+ {
+ std::string type;
Felix Dahlke 2014/08/08 16:11:35 Unused, isn't it?
+ std::string documentUrl;
+ request >> documentUrl;
+ AdblockPlus::FilterPtr filter = filterEngine->Matches(documentUrl, "ELEMHIDE", documentUrl);
+ response << (!filter);
Felix Dahlke 2014/08/08 16:11:35 Superfluous parentheses. More importantly, this o
+ break;
+ }
case Communication::PROC_GET_ELEMHIDE_SELECTORS:
{
std::string domain;
« no previous file with comments | « no previous file | src/plugin/AdblockPlusClient.h » ('j') | src/plugin/PluginTabBase.cpp » ('J')

Powered by Google App Engine
This is Rietveld