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

Unified Diff: components/dom_distiller/core/distilled_page_prefs.cc

Issue 2440303002: Remove usage of FOR_EACH_OBSERVER macro in components/ (Closed)
Patch Set: remove superfluous return 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
Index: components/dom_distiller/core/distilled_page_prefs.cc
diff --git a/components/dom_distiller/core/distilled_page_prefs.cc b/components/dom_distiller/core/distilled_page_prefs.cc
index 35bf09444354849cb6df8e5f49b2e6e66e4124b6..cdd340ac3378d70723ac26240a0b2cfa1990fada 100644
--- a/components/dom_distiller/core/distilled_page_prefs.cc
+++ b/components/dom_distiller/core/distilled_page_prefs.cc
@@ -115,17 +115,20 @@ void DistilledPagePrefs::RemoveObserver(Observer* obs) {
void DistilledPagePrefs::NotifyOnChangeFontFamily(
DistilledPagePrefs::FontFamily new_font_family) {
- FOR_EACH_OBSERVER(Observer, observers_, OnChangeFontFamily(new_font_family));
+ for (Observer& observer : observers_)
+ observer.OnChangeFontFamily(new_font_family);
}
void DistilledPagePrefs::NotifyOnChangeTheme(
DistilledPagePrefs::Theme new_theme) {
- FOR_EACH_OBSERVER(Observer, observers_, OnChangeTheme(new_theme));
+ for (Observer& observer : observers_)
+ observer.OnChangeTheme(new_theme);
}
void DistilledPagePrefs::NotifyOnChangeFontScaling(
float scaling) {
- FOR_EACH_OBSERVER(Observer, observers_, OnChangeFontScaling(scaling));
+ for (Observer& observer : observers_)
+ observer.OnChangeFontScaling(scaling);
}
} // namespace dom_distiller
« no previous file with comments | « components/data_usage/core/data_use_aggregator.cc ('k') | components/dom_distiller/core/dom_distiller_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698