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

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

Issue 2438513002: Remove FOR_EACH_OBSERVER macro usage in chrome/browser/supervised_user (Closed)
Patch Set: Created 4 years, 2 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 | chrome/browser/plugins/plugin_installer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/content_settings/tab_specific_content_settings.cc
diff --git a/chrome/browser/content_settings/tab_specific_content_settings.cc b/chrome/browser/content_settings/tab_specific_content_settings.cc
index 9b653b3d74fb3595f4d86b0e3adb7d1c47e1943f..1cb75700a645501b1c68d1bd58a5293155933d5f 100644
--- a/chrome/browser/content_settings/tab_specific_content_settings.cc
+++ b/chrome/browser/content_settings/tab_specific_content_settings.cc
@@ -114,8 +114,8 @@ TabSpecificContentSettings::TabSpecificContentSettings(WebContents* tab)
}
TabSpecificContentSettings::~TabSpecificContentSettings() {
- FOR_EACH_OBSERVER(
- SiteDataObserver, observer_list_, ContentSettingsDestroyed());
+ for (SiteDataObserver& observer : observer_list_)
+ observer.ContentSettingsDestroyed();
}
TabSpecificContentSettings* TabSpecificContentSettings::GetForFrame(
@@ -862,7 +862,8 @@ void TabSpecificContentSettings::RemoveSiteDataObserver(
}
void TabSpecificContentSettings::NotifySiteDataObservers() {
- FOR_EACH_OBSERVER(SiteDataObserver, observer_list_, OnSiteDataAccessed());
+ for (SiteDataObserver& observer : observer_list_)
+ observer.OnSiteDataAccessed();
}
void TabSpecificContentSettings::ClearGeolocationContentSettings() {
« no previous file with comments | « no previous file | chrome/browser/plugins/plugin_installer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698