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

Unified Diff: ash/common/wm/dock/docked_window_layout_manager.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/wallpaper/wallpaper_controller.cc ('k') | ash/common/wm/window_state.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/wm/dock/docked_window_layout_manager.cc
diff --git a/ash/common/wm/dock/docked_window_layout_manager.cc b/ash/common/wm/dock/docked_window_layout_manager.cc
index 180817620afd18b30a44a13473c503bbb7600327..f25f09df3f6c82423edba4e8e5adf1d60a3ef921 100644
--- a/ash/common/wm/dock/docked_window_layout_manager.cc
+++ b/ash/common/wm/dock/docked_window_layout_manager.cc
@@ -1297,8 +1297,8 @@ void DockedWindowLayoutManager::UpdateDockBounds(
dock_container_->GetBounds().y(), dock_inset, work_area.height());
docked_bounds_ =
bounds + dock_container_->GetBoundsInScreen().OffsetFromOrigin();
- FOR_EACH_OBSERVER(DockedWindowLayoutManagerObserver, observer_list_,
- OnDockBoundsChanging(bounds, reason));
+ for (auto& observer : observer_list_)
+ observer.OnDockBoundsChanging(bounds, reason);
// Show or hide background for docked area.
gfx::Rect background_bounds(docked_bounds_);
if (shelf_observer_)
« no previous file with comments | « ash/common/wallpaper/wallpaper_controller.cc ('k') | ash/common/wm/window_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698