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

Unified Diff: extensions/browser/extension_prefs.cc

Issue 184043024: Limit scope of settings API configuration and proxy permission (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed Bernhard's comments Created 6 years, 10 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: extensions/browser/extension_prefs.cc
diff --git a/extensions/browser/extension_prefs.cc b/extensions/browser/extension_prefs.cc
index 8c26aa339dfc11cb449f35fb2e9392978e05f60c..aaab4cc54242314195096f89fbc208a8ce50f9dc 100644
--- a/extensions/browser/extension_prefs.cc
+++ b/extensions/browser/extension_prefs.cc
@@ -1036,6 +1036,7 @@ void ExtensionPrefs::SetIsIncognitoEnabled(const std::string& extension_id,
bool enabled) {
UpdateExtensionPref(extension_id, kPrefIncognitoEnabled,
new base::FundamentalValue(enabled));
+ extension_pref_value_map_->SetExtensionIncognitoState(extension_id, enabled);
}
bool ExtensionPrefs::AllowFileAccess(const std::string& extension_id) const {
@@ -1901,9 +1902,10 @@ void ExtensionPrefs::FinishExtensionInfoPrefs(
if (extension_dict->GetInteger(kPrefState, &initial_state)) {
is_enabled = initial_state == Extension::ENABLED;
}
+ bool is_incognito_enabled = IsIncognitoEnabled(extension_id);
- extension_pref_value_map_->RegisterExtension(extension_id, install_time,
- is_enabled);
+ extension_pref_value_map_->RegisterExtension(
+ extension_id, install_time, is_enabled, is_incognito_enabled);
content_settings_store_->RegisterExtension(extension_id, install_time,
is_enabled);
}

Powered by Google App Engine
This is Rietveld 408576698