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

Unified Diff: chrome/browser/host_content_settings_map.cc

Issue 3068005: Flesh out the content settings exceptions lists a bit more. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: reduce instance vars Created 10 years, 5 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 | « chrome/browser/host_content_settings_map.h ('k') | chrome/browser/host_content_settings_map_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/host_content_settings_map.cc
diff --git a/chrome/browser/host_content_settings_map.cc b/chrome/browser/host_content_settings_map.cc
index 874223818dc7fd4abddcb336fd4fa9aecd507004..c08dacfa260999472e062d04f6354ad20c655e24 100644
--- a/chrome/browser/host_content_settings_map.cc
+++ b/chrome/browser/host_content_settings_map.cc
@@ -338,7 +338,7 @@ void HostContentSettingsMap::SetDefaultContentSetting(
}
updating_preferences_ = false;
- NotifyObservers(ContentSettingsDetails(true));
+ NotifyObservers(ContentSettingsDetails(content_type));
}
void HostContentSettingsMap::SetContentSetting(const Pattern& pattern,
@@ -403,7 +403,7 @@ void HostContentSettingsMap::SetContentSetting(const Pattern& pattern,
ScopedPrefUpdate update(prefs, prefs::kContentSettingsPatterns);
updating_preferences_ = false;
- NotifyObservers(ContentSettingsDetails(pattern));
+ NotifyObservers(ContentSettingsDetails(pattern, content_type));
}
void HostContentSettingsMap::AddExceptionForURL(
@@ -466,7 +466,7 @@ void HostContentSettingsMap::ClearSettingsForOneType(
ScopedPrefUpdate update(prefs, prefs::kContentSettingsPatterns);
updating_preferences_ = false;
- NotifyObservers(ContentSettingsDetails(true));
+ NotifyObservers(ContentSettingsDetails(content_type));
}
void HostContentSettingsMap::SetBlockThirdPartyCookies(bool block) {
@@ -510,7 +510,7 @@ void HostContentSettingsMap::ResetToDefaults() {
prefs->ClearPref(prefs::kContentSettingsPatterns);
prefs->ClearPref(prefs::kBlockThirdPartyCookies);
updating_preferences_ = false;
- NotifyObservers(ContentSettingsDetails(true));
+ NotifyObservers(ContentSettingsDetails());
}
}
@@ -542,7 +542,7 @@ void HostContentSettingsMap::Observe(NotificationType type,
}
if (!is_off_the_record_)
- NotifyObservers(ContentSettingsDetails(true));
+ NotifyObservers(ContentSettingsDetails());
} else if (NotificationType::PROFILE_DESTROYED == type) {
UnregisterObservers();
} else {
« no previous file with comments | « chrome/browser/host_content_settings_map.h ('k') | chrome/browser/host_content_settings_map_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698