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

Unified Diff: src/plugin/AdblockPlusClient.cpp

Issue 5024350814076928: Issue 1103 - Migrate Simple Adblock users
Patch Set: Use registry instead of prefs for storing the Simple Adblock mark Created Aug. 7, 2015, 10:34 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
@@ -23,6 +23,7 @@
#include "PluginMutex.h"
#include "PluginClass.h"
#include "../shared/Utils.h"
+#include "Registry.h"
namespace
{
@@ -571,4 +572,17 @@
int result;
response >> result;
return result;
+}
+
+std::wstring CAdblockPlusClient::GetConvertedFrom()
+{
+ DEBUG_GENERAL("GetConvertedFrom");
+ Communication::OutputBuffer request;
+ request << Communication::PROC_GET_CONVERTED_FROM;
+ Communication::InputBuffer response;
+ if (!CallEngine(request, response))
+ return L"";
+ std::string convertedFrom;
+ response >> convertedFrom;
+ return ToUtf16String(convertedFrom);
}

Powered by Google App Engine
This is Rietveld