| 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; |
| +} |