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: Comments addressed Created July 20, 2013, 8:11 p.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 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 420
421 bool CAdblockPlusClient::GetIsFirstRun() 421 bool CAdblockPlusClient::IsFirstRun()
422 { 422 {
423 Communication::OutputBuffer request;
424 request << Communication::PROC_GET_IS_FIRST_RUN;
425 try 423 try
426 { 424 {
427 Communication::InputBuffer response = CallAdblockPlusEngineProcedure(request ); 425 Communication::InputBuffer response = CallAdblockPlusEngineProcedure(Communi cation::PROC_IS_FIRST_RUN_ACTION_NEEDED);
428 bool res = false; 426 bool res;
429 response >> res; 427 response >> res;
430 return res; 428 return res;
431 } 429 }
432 catch (const std::exception& e) 430 catch (const std::exception& e)
433 { 431 {
434 DEBUG_GENERAL(e.what()); 432 DEBUG_GENERAL(e.what());
435 } 433 }
436 return false; 434 return false;
437 } 435 }
OLDNEW

Powered by Google App Engine
This is Rietveld