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

Unified Diff: ash/aura/wm_shell_aura.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 | « no previous file | ash/common/keyboard/keyboard_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/aura/wm_shell_aura.cc
diff --git a/ash/aura/wm_shell_aura.cc b/ash/aura/wm_shell_aura.cc
index 9e0150bc6d91511690b566268a56d1b2aa24bb5e..b316f8df03458eb5a584f73ca76c624374caa2d5 100644
--- a/ash/aura/wm_shell_aura.cc
+++ b/ash/aura/wm_shell_aura.cc
@@ -239,12 +239,13 @@ std::unique_ptr<KeyEventWatcher> WmShellAura::CreateKeyEventWatcher() {
}
void WmShellAura::OnOverviewModeStarting() {
- FOR_EACH_OBSERVER(ShellObserver, *shell_observers(),
- OnOverviewModeStarting());
+ for (auto& observer : *shell_observers())
+ observer.OnOverviewModeStarting();
}
void WmShellAura::OnOverviewModeEnded() {
- FOR_EACH_OBSERVER(ShellObserver, *shell_observers(), OnOverviewModeEnded());
+ for (auto& observer : *shell_observers())
+ observer.OnOverviewModeEnded();
}
SessionStateDelegate* WmShellAura::GetSessionStateDelegate() {
« no previous file with comments | « no previous file | ash/common/keyboard/keyboard_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698