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

Unified Diff: src/plugin/AdblockPlusClient.cpp

Issue 4784041706389504: Issue 1183 - Fix Acceptable Ads hiding (Closed)
Patch Set: Addressed comments, reorganized the code Created Aug. 8, 2014, 4:37 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: src/plugin/AdblockPlusClient.cpp
===================================================================
--- a/src/plugin/AdblockPlusClient.cpp
+++ b/src/plugin/AdblockPlusClient.cpp
@@ -281,6 +281,20 @@
return isWhitelisted;
}
+bool CAdblockPlusClient::IsHidingWhitelistedOnDomain(const std::wstring& domain)
Felix Dahlke 2014/08/08 16:41:45 s/Hiding/Elemhide? If you rename documentUrl in M
+{
+ Communication::OutputBuffer request;
+ request << Communication::PROC_IS_ELEMHIDE_WHITELISTED_ON_URL << ToUtf8String(domain);
+
+ Communication::InputBuffer response;
+ if (!CallEngine(request, response))
+ return false;
+
+ bool isWhitelisted;
+ response >> isWhitelisted;
+ return isWhitelisted;
+}
+
int CAdblockPlusClient::GetIEVersion()
{
//HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer

Powered by Google App Engine
This is Rietveld