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

Unified Diff: chrome/browser/profiles/profile.cc

Issue 7088017: Split incognito extension content settings in session-only and persistent. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 9 years, 7 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/profiles/profile.cc
diff --git a/chrome/browser/profiles/profile.cc b/chrome/browser/profiles/profile.cc
index f35020c44f9df9a21ce074e4b660070ca17d32db..8db906ff70afbb190cfa84307f89b05ec47e7972 100644
--- a/chrome/browser/profiles/profile.cc
+++ b/chrome/browser/profiles/profile.cc
@@ -244,6 +244,10 @@ class OffTheRecordProfileImpl : public Profile,
if (pref_proxy_config_tracker_)
pref_proxy_config_tracker_->DetachFromPrefService();
+
+ ExtensionService* extension_service = GetExtensionService();
+ if (extension_service)
+ extension_service->extension_prefs()->ClearIncognitoSessionOnlySettings();
}
virtual ProfileId GetRuntimeId() {
@@ -742,7 +746,7 @@ class OffTheRecordProfileImpl : public Profile,
// The download manager that only stores downloaded items in memory.
scoped_refptr<DownloadManager> download_manager_;
- // We use a non-writable content settings map for OTR.
+ // We use a non-persistent content settings map for OTR.
scoped_refptr<HostContentSettingsMap> host_content_settings_map_;
// Use a separate zoom map for OTR.

Powered by Google App Engine
This is Rietveld 408576698