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

Unified Diff: src/plugin/AdblockPlusClient.cpp

Issue 6025347820683264: Issue 1106 - Enable Acceptable Ads by default for new installs and updates from versions < 1.2 (Closed)
Patch Set: Created Aug. 1, 2014, 12:56 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
@@ -402,6 +402,7 @@
response >> res;
return res;
}
+
void CAdblockPlusClient::AddFilter(const std::wstring& text)
{
Communication::OutputBuffer request;
@@ -557,3 +558,16 @@
response >> host;
return ToUtf16String(host);
}
+
+int CAdblockPlusClient::CompareVersions(const std::wstring& v1, const std::wstring& v2)
+{
+ DEBUG_GENERAL("CompareVersions");
+ Communication::OutputBuffer request;
+ request << Communication::PROC_COMPARE_VERSIONS << ToUtf8String(v1) << ToUtf8String(v2);
+ Communication::InputBuffer response;
+ if (!CallEngine(request, response))
+ return 0;
+ int result;
+ response >> result;
+ return result;
+}

Powered by Google App Engine
This is Rietveld