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

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

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.cc
diff --git a/chrome/browser/extensions/extension_prefs.cc b/chrome/browser/extensions/extension_prefs.cc
index 93378302def373cecd331cdd8b81de8a2f99dba4..741ca44704090b1e1a08300c0c78ab50c15cff68 100644
--- a/chrome/browser/extensions/extension_prefs.cc
+++ b/chrome/browser/extensions/extension_prefs.cc
@@ -1816,6 +1816,18 @@ bool ExtensionPrefs::DoesExtensionControlPref(const std::string& extension_id,
incognito);
}
+bool ExtensionPrefs::DoesExtensionControlIncognitoPref(
+ const std::string& extension_id,
+ const std::string& pref_key) {
+ DCHECK(pref_service()->FindPreference(pref_key.c_str()))
+ << "Extension controlled preference key " << pref_key
+ << " not registered.";
+
+ return extension_pref_value_map_->DoesExtensionControlIncognitoPref(
+ extension_id,
+ pref_key);
+}
+
bool ExtensionPrefs::HasIncognitoPrefValue(const std::string& pref_key) {
bool has_incognito_pref_value = false;
extension_pref_value_map_->GetEffectivePrefValue(pref_key,

Powered by Google App Engine
This is Rietveld 408576698