Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1611)

Unified Diff: chrome/browser/extensions/extension_prefs.h

Issue 10559052: Split mode incognito extension can get misleading pref changed events from regular mode (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/extension_prefs.h
diff --git a/chrome/browser/extensions/extension_prefs.h b/chrome/browser/extensions/extension_prefs.h
index ae05fd960737ac0aa723ae5683a6e3a92f1e70e1..6fc95c7cbaf89b36b62151b77318ea69a867a67e 100644
--- a/chrome/browser/extensions/extension_prefs.h
+++ b/chrome/browser/extensions/extension_prefs.h
@@ -387,6 +387,11 @@ class ExtensionPrefs : public extensions::ContentSettingsStore::Observer,
const std::string& pref_key,
bool incognito);
+ // Returns true if extension |extension_id| currently controls the
+ // preference, *and* it is specific to incognito mode.
+ bool DoesExtensionControlIncognitoPref(const std::string& extension_id,
+ const std::string& pref_key);
+
// Returns true if there is an extension which controls the preference value
// for |pref_key| *and* it is specific to incognito mode.
bool HasIncognitoPrefValue(const std::string& pref_key);

Powered by Google App Engine
This is Rietveld 408576698