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: Addressing comments. Actual functionality fixes Created Aug. 1, 2013, 10:28 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
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);
}

Powered by Google App Engine
This is Rietveld