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

Side by Side Diff: src/plugin/AdblockPlusClient.cpp

Issue 11043057: First run page triggering (Closed)
Patch Set: Created July 11, 2013, 9:49 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 #include "PluginStdAfx.h" 1 #include "PluginStdAfx.h"
2 2
3 #include "PluginSettings.h" 3 #include "PluginSettings.h"
4 #include "PluginSystem.h" 4 #include "PluginSystem.h"
5 #include "PluginFilter.h" 5 #include "PluginFilter.h"
6 #include "PluginClientFactory.h" 6 #include "PluginClientFactory.h"
7 #include "PluginMutex.h" 7 #include "PluginMutex.h"
8 #include "PluginClass.h" 8 #include "PluginClass.h"
9 9
10 #include "AdblockPlusClient.h" 10 #include "AdblockPlusClient.h"
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 Communication::InputBuffer response = CallAdblockPlusEngineProcedure(request ); 410 Communication::InputBuffer response = CallAdblockPlusEngineProcedure(request );
411 std::vector<std::wstring> retValue = ReadStrings(response); 411 std::vector<std::wstring> retValue = ReadStrings(response);
412 return retValue.size() > 0 ? retValue.at(0) : L""; 412 return retValue.size() > 0 ? retValue.at(0) : L"";
413 } 413 }
414 catch (const std::exception& e) 414 catch (const std::exception& e)
415 { 415 {
416 DEBUG_GENERAL(e.what()); 416 DEBUG_GENERAL(e.what());
417 return L""; 417 return L"";
418 } 418 }
419 } 419 }
420
421 bool CAdblockPlusClient::GetIsFirstRun()
Wladimir Palant 2013/07/11 11:58:10 CAdblockPlusClient::IsFirstRun() should be a bette
422 {
423 Communication::OutputBuffer request;
424 request << Communication::PROC_GET_IS_FIRST_RUN;
425 try
426 {
427 Communication::InputBuffer response = CallAdblockPlusEngineProcedure(request );
Wladimir Palant 2013/07/11 11:58:10 CallAdblockPlusEngineProcedure(Communication::PROC
428 bool res = false;
Wladimir Palant 2013/07/11 11:58:10 Please don't initialize that variable, its initial
429 response >> res;
430 return res;
431 }
432 catch (const std::exception& e)
433 {
434 DEBUG_GENERAL(e.what());
435 }
436 return false;
437 }
OLDNEW

Powered by Google App Engine
This is Rietveld