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

Unified Diff: chrome/browser/status_icons/status_icon_menu_model.cc

Issue 2435533004: Reduce usage of FOR_EACH_OBSERVER macro in chrome/browser/signin (Closed)
Patch Set: braces 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: chrome/browser/status_icons/status_icon_menu_model.cc
diff --git a/chrome/browser/status_icons/status_icon_menu_model.cc b/chrome/browser/status_icons/status_icon_menu_model.cc
index 5f3604055c9e2c13cd2cd408a63a8e4cfffe3e82..4155b2dccd9213ed7f0faa8eac7e77eea4c031ee 100644
--- a/chrome/browser/status_icons/status_icon_menu_model.cc
+++ b/chrome/browser/status_icons/status_icon_menu_model.cc
@@ -163,7 +163,8 @@ void StatusIconMenuModel::MenuItemsChanged() {
}
void StatusIconMenuModel::NotifyMenuStateChanged() {
- FOR_EACH_OBSERVER(Observer, observer_list_, OnMenuStateChanged());
+ for (Observer& observer : observer_list_)
+ observer.OnMenuStateChanged();
}
////////////////////////////////////////////////////////////////////////////////
« no previous file with comments | « chrome/browser/status_icons/status_icon.cc ('k') | chrome/browser/sync/sessions/sessions_sync_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698