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

Unified Diff: components/favicon/core/favicon_driver.cc

Issue 2440303002: Remove usage of FOR_EACH_OBSERVER macro in components/ (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
Index: components/favicon/core/favicon_driver.cc
diff --git a/components/favicon/core/favicon_driver.cc b/components/favicon/core/favicon_driver.cc
index e94034e3e78de657713851b770c654fc021e0529..bd0f278a284193631b9e976a6dcf342bba21797c 100644
--- a/components/favicon/core/favicon_driver.cc
+++ b/components/favicon/core/favicon_driver.cc
@@ -25,9 +25,10 @@ void FaviconDriver::NotifyFaviconUpdatedObservers(
const GURL& icon_url,
bool icon_url_changed,
const gfx::Image& image) {
- FOR_EACH_OBSERVER(FaviconDriverObserver, observer_list_,
- OnFaviconUpdated(this, notification_icon_type, icon_url,
- icon_url_changed, image));
+ for (FaviconDriverObserver& observer : observer_list_) {
+ observer.OnFaviconUpdated(this, notification_icon_type, icon_url,
+ icon_url_changed, image);
+ }
}
} // namespace favicon

Powered by Google App Engine
This is Rietveld 408576698