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

Unified Diff: src/plugin/AdblockPlusClient.cpp

Issue 11369200: Disable everywhere fix (Closed)
Patch Set: TogglePluginEnabled transfered to engine Created Aug. 20, 2013, 7: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
« no previous file with comments | « src/plugin/AdblockPlusClient.h ('k') | src/plugin/PluginSettings.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/plugin/AdblockPlusClient.cpp
===================================================================
--- a/src/plugin/AdblockPlusClient.cpp
+++ b/src/plugin/AdblockPlusClient.cpp
@@ -456,3 +456,14 @@
response >> docLink;
return docLink;
}
+
+bool CAdblockPlusClient::TogglePluginEnabled()
+{
+ DEBUG_GENERAL("TogglePluginEnabled");
+ Communication::InputBuffer response;
+ if (!CallEngine(Communication::PROC_TOGGLE_PLUGIN_ENABLED, response))
+ return false;
+ bool currentEnabledState;
+ response >> currentEnabledState;
+ return currentEnabledState;
+}
« no previous file with comments | « src/plugin/AdblockPlusClient.h ('k') | src/plugin/PluginSettings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld