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

Unified Diff: chrome/browser/content_settings/host_content_settings_map.cc

Issue 471763009: Update the Website Settings options page when a Content Setting is used. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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/content_settings/host_content_settings_map.cc
diff --git a/chrome/browser/content_settings/host_content_settings_map.cc b/chrome/browser/content_settings/host_content_settings_map.cc
index f65ccbd2e43f59e6c3439867e8e4093d5e4e20c9..49d6662c1a5d36a474c4fe77b71140b6ba1042ce 100644
--- a/chrome/browser/content_settings/host_content_settings_map.cc
+++ b/chrome/browser/content_settings/host_content_settings_map.cc
@@ -380,6 +380,11 @@ void HostContentSettingsMap::UpdateLastUsageByPattern(
GetPrefProvider()->UpdateLastUsage(
primary_pattern, secondary_pattern, content_type);
+
+ FOR_EACH_OBSERVER(
+ content_settings::Observer,
+ observers_,
+ OnContentSettingUsed(primary_pattern, secondary_pattern, content_type));
}
base::Time HostContentSettingsMap::GetLastUsage(

Powered by Google App Engine
This is Rietveld 408576698