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

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

Issue 9834045: Don't try to remove extension-defined content settings when extensions are disabled. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/off_the_record_profile_impl.cc
diff --git a/chrome/browser/profiles/off_the_record_profile_impl.cc b/chrome/browser/profiles/off_the_record_profile_impl.cc
index fe99c67a296198c7444b3911c3d226627e72f31b..0e2f88c3508ddd2e68dc2a0b38012ed941fcfc79 100644
--- a/chrome/browser/profiles/off_the_record_profile_impl.cc
+++ b/chrome/browser/profiles/off_the_record_profile_impl.cc
@@ -139,7 +139,7 @@ OffTheRecordProfileImpl::~OffTheRecordProfileImpl() {
pref_proxy_config_tracker_->DetachFromPrefService();
ExtensionService* extension_service = GetExtensionService();
- if (extension_service) {
+ if (extension_service && extension_service->extensions_enabled()) {
ExtensionPrefs* extension_prefs = extension_service->extension_prefs();
extension_prefs->ClearIncognitoSessionOnlyContentSettings();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698