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

Unified Diff: ash/common/keyboard/keyboard_ui.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/aura/wm_shell_aura.cc ('k') | ash/display/display_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/keyboard/keyboard_ui.cc
diff --git a/ash/common/keyboard/keyboard_ui.cc b/ash/common/keyboard/keyboard_ui.cc
index 993b83eba18454a632397909f365e5fd76c52ee4..25ecbd8893b0f812dcbac8b8660029edfc99735d 100644
--- a/ash/common/keyboard/keyboard_ui.cc
+++ b/ash/common/keyboard/keyboard_ui.cc
@@ -46,8 +46,8 @@ class KeyboardUIImpl : public KeyboardUI, public AccessibilityObserver {
return;
enabled_ = enabled;
- FOR_EACH_OBSERVER(KeyboardUIObserver, *observers(),
- OnKeyboardEnabledStateChanged(enabled));
+ for (auto& observer : *observers())
+ observer.OnKeyboardEnabledStateChanged(enabled);
}
private:
« no previous file with comments | « ash/aura/wm_shell_aura.cc ('k') | ash/display/display_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698