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

Unified Diff: src/plugin/AdblockPlusClient.cpp

Issue 11043057: First run page triggering (Closed)
Patch Set: Created July 11, 2013, 9:49 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
Index: src/plugin/AdblockPlusClient.cpp
===================================================================
--- a/src/plugin/AdblockPlusClient.cpp
+++ b/src/plugin/AdblockPlusClient.cpp
@@ -417,3 +417,21 @@
return L"";
}
}
+
+bool CAdblockPlusClient::GetIsFirstRun()
Wladimir Palant 2013/07/11 11:58:10 CAdblockPlusClient::IsFirstRun() should be a bette
+{
+ Communication::OutputBuffer request;
+ request << Communication::PROC_GET_IS_FIRST_RUN;
+ try
+ {
+ Communication::InputBuffer response = CallAdblockPlusEngineProcedure(request);
Wladimir Palant 2013/07/11 11:58:10 CallAdblockPlusEngineProcedure(Communication::PROC
+ bool res = false;
Wladimir Palant 2013/07/11 11:58:10 Please don't initialize that variable, its initial
+ response >> res;
+ return res;
+ }
+ catch (const std::exception& e)
+ {
+ DEBUG_GENERAL(e.what());
+ }
+ return false;
+}

Powered by Google App Engine
This is Rietveld