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

Unified Diff: ash/mus/keyboard_ui_mus.cc

Issue 2421853003: Remove usage of FOR_EACH_OBSERVER macro in ash/ (Closed)
Patch Set: shell_observers 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
« no previous file with comments | « ash/mus/bridge/wm_window_mus.cc ('k') | ash/mus/window_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/mus/keyboard_ui_mus.cc
diff --git a/ash/mus/keyboard_ui_mus.cc b/ash/mus/keyboard_ui_mus.cc
index 1dff4b83bc094df23ee567b2a73a07e49823156c..f70eed1c4cc4487a60b5ee09cf19c3f8902abf9a 100644
--- a/ash/mus/keyboard_ui_mus.cc
+++ b/ash/mus/keyboard_ui_mus.cc
@@ -47,8 +47,8 @@ void KeyboardUIMus::OnKeyboardStateChanged(bool is_enabled,
return;
is_enabled_ = is_enabled;
- FOR_EACH_OBSERVER(KeyboardUIObserver, *observers(),
- OnKeyboardEnabledStateChanged(is_enabled));
+ for (auto& observer : *observers())
+ observer.OnKeyboardEnabledStateChanged(is_enabled);
}
} // namespace ash
« no previous file with comments | « ash/mus/bridge/wm_window_mus.cc ('k') | ash/mus/window_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698