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

Unified Diff: ash/common/wm/window_state.cc

Issue 2414303002: Remove usage of FOR_EACH_OBSERVER macro in ash/common (Closed)
Patch Set: 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/common/wm/dock/docked_window_layout_manager.cc ('k') | ash/common/wm_shell.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/wm/window_state.cc
diff --git a/ash/common/wm/window_state.cc b/ash/common/wm/window_state.cc
index e3b5cbb9d223309f4d1a012947c0a5d141ab059b..c6654c0c265102a76890031d58d65bbe792727cd 100644
--- a/ash/common/wm/window_state.cc
+++ b/ash/common/wm/window_state.cc
@@ -351,14 +351,14 @@ void WindowState::UpdateWindowShowStateFromStateType() {
void WindowState::NotifyPreStateTypeChange(
WindowStateType old_window_state_type) {
- FOR_EACH_OBSERVER(WindowStateObserver, observer_list_,
- OnPreWindowStateTypeChange(this, old_window_state_type));
+ for (auto& observer : observer_list_)
+ observer.OnPreWindowStateTypeChange(this, old_window_state_type);
}
void WindowState::NotifyPostStateTypeChange(
WindowStateType old_window_state_type) {
- FOR_EACH_OBSERVER(WindowStateObserver, observer_list_,
- OnPostWindowStateTypeChange(this, old_window_state_type));
+ for (auto& observer : observer_list_)
+ observer.OnPostWindowStateTypeChange(this, old_window_state_type);
}
void WindowState::SetBoundsDirect(const gfx::Rect& bounds) {
« no previous file with comments | « ash/common/wm/dock/docked_window_layout_manager.cc ('k') | ash/common/wm_shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698