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

Unified Diff: ash/mus/bridge/wm_shell_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/first_run/first_run_helper_impl.cc ('k') | ash/mus/bridge/wm_window_mus.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/mus/bridge/wm_shell_mus.cc
diff --git a/ash/mus/bridge/wm_shell_mus.cc b/ash/mus/bridge/wm_shell_mus.cc
index ed26084c8623ccd0ba875dd5022d1926e602d772..25e4ea185ccd45d48636d371f042a6a054f6a6a1 100644
--- a/ash/mus/bridge/wm_shell_mus.cc
+++ b/ash/mus/bridge/wm_shell_mus.cc
@@ -380,12 +380,13 @@ std::unique_ptr<KeyEventWatcher> WmShellMus::CreateKeyEventWatcher() {
}
void WmShellMus::OnOverviewModeStarting() {
- FOR_EACH_OBSERVER(ShellObserver, *shell_observers(),
- OnOverviewModeStarting());
+ for (auto& observer : *shell_observers())
+ observer.OnOverviewModeStarting();
}
void WmShellMus::OnOverviewModeEnded() {
- FOR_EACH_OBSERVER(ShellObserver, *shell_observers(), OnOverviewModeEnded());
+ for (auto& observer : *shell_observers())
+ observer.OnOverviewModeEnded();
}
SessionStateDelegate* WmShellMus::GetSessionStateDelegate() {
@@ -457,8 +458,8 @@ void WmShellMus::OnWindowTreeFocusChanged(ui::Window* gained_focus,
if (gained_active == lost_active)
return;
- FOR_EACH_OBSERVER(WmActivationObserver, activation_observers_,
- OnWindowActivated(gained_active, lost_active));
+ for (auto& observer : activation_observers_)
+ observer.OnWindowActivated(gained_active, lost_active);
}
void WmShellMus::OnDidDestroyClient(ui::WindowTreeClient* client) {
« no previous file with comments | « ash/first_run/first_run_helper_impl.cc ('k') | ash/mus/bridge/wm_window_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698