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

Unified Diff: components/history/core/browser/top_sites.cc

Issue 2423813002: Remove usage of FOR_EACH_OBSERVER macro in components/history (Closed)
Patch Set: explicit type 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/history/core/browser/top_sites.cc
diff --git a/components/history/core/browser/top_sites.cc b/components/history/core/browser/top_sites.cc
index 987d86b6ac0d00254427614f33e151c3873ad4a1..5acf6dbf218110aa728538285f6c6985847dde51 100644
--- a/components/history/core/browser/top_sites.cc
+++ b/components/history/core/browser/top_sites.cc
@@ -39,13 +39,14 @@ void TopSites::RemoveObserver(TopSitesObserver* observer) {
}
void TopSites::NotifyTopSitesLoaded() {
- FOR_EACH_OBSERVER(TopSitesObserver, observer_list_, TopSitesLoaded(this));
+ for (TopSitesObserver& observer : observer_list_)
+ observer.TopSitesLoaded(this);
}
void TopSites::NotifyTopSitesChanged(
const TopSitesObserver::ChangeReason reason) {
- FOR_EACH_OBSERVER(TopSitesObserver, observer_list_,
- TopSitesChanged(this, reason));
+ for (TopSitesObserver& observer : observer_list_)
+ observer.TopSitesChanged(this, reason);
}
} // namespace history
« no previous file with comments | « components/history/core/browser/history_service.cc ('k') | components/history/core/browser/web_history_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698