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

Unified Diff: src/plugin/PluginSettings.cpp

Issue 11292028: Status bar menu added (Closed)
Patch Set: Comments addressed Created Aug. 5, 2013, 1:13 p.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/PluginClass.cpp ('k') | src/plugin/PluginTabBase.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/plugin/PluginSettings.cpp
===================================================================
--- a/src/plugin/PluginSettings.cpp
+++ b/src/plugin/PluginSettings.cpp
@@ -216,21 +216,11 @@
}
void CPluginSettings::SetPluginEnabled()
{
- CPluginSettingsTabLock lock;
- if (lock.IsLocked())
- {
- s_criticalSectionLocal.Lock();
- {
- m_isPluginEnabledTab = true;
- //TODO: Set plugin enabled in AdblockPlusEngine
- }
- s_criticalSectionLocal.Unlock();
- }
+ CPluginClient::GetInstance()->SetPref(L"enabled", true);
}
bool CPluginSettings::GetPluginEnabled() const
{
- //TODO: Query AdblockPlusEngine
- return m_isPluginEnabledTab;
+ return CPluginClient::GetInstance()->GetPref(L"enabled", true);
}
« no previous file with comments | « src/plugin/PluginClass.cpp ('k') | src/plugin/PluginTabBase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld