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

Unified Diff: components/search_engines/template_url_service.cc

Issue 2430823002: Reduce 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/search_engines/template_url_service.cc
diff --git a/components/search_engines/template_url_service.cc b/components/search_engines/template_url_service.cc
index d6c5cb961be4cf81e03469fd083436ccfed0ca6d..c7d94214638d59cf9e716396ed8bb491b5510b1a 100644
--- a/components/search_engines/template_url_service.cc
+++ b/components/search_engines/template_url_service.cc
@@ -2115,8 +2115,8 @@ void TemplateURLService::NotifyObservers() {
if (!loaded_)
return;
- FOR_EACH_OBSERVER(TemplateURLServiceObserver, model_observers_,
- OnTemplateURLServiceChanged());
+ for (auto& observer : model_observers_)
+ observer.OnTemplateURLServiceChanged();
}
// |template_urls| are the TemplateURLs loaded from the database.
« no previous file with comments | « components/renderer_context_menu/render_view_context_menu_base.cc ('k') | components/search_provider_logos/logo_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698