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

Unified Diff: services/ui/ws/window_manager_window_tree_factory_set.cc

Issue 2424613002: Remove usage of FOR_EACH_OBSERVER macro in services/ (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 | « services/ui/ws/user_id_tracker.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/window_manager_window_tree_factory_set.cc
diff --git a/services/ui/ws/window_manager_window_tree_factory_set.cc b/services/ui/ws/window_manager_window_tree_factory_set.cc
index 9c8ba110434ee74594406713491e5fe5b16e9c84..50e7822790fe3054272cc42ee8027a312fbe10dc 100644
--- a/services/ui/ws/window_manager_window_tree_factory_set.cc
+++ b/services/ui/ws/window_manager_window_tree_factory_set.cc
@@ -82,8 +82,8 @@ void WindowManagerWindowTreeFactorySet::OnWindowManagerWindowTreeFactoryReady(
WindowManagerWindowTreeFactory* factory) {
const bool is_first_valid_factory = !got_valid_factory_;
got_valid_factory_ = true;
- FOR_EACH_OBSERVER(WindowManagerWindowTreeFactorySetObserver, observers_,
- OnWindowManagerWindowTreeFactoryReady(factory));
+ for (auto& observer : observers_)
+ observer.OnWindowManagerWindowTreeFactoryReady(factory);
// Notify after other observers as WindowServer triggers other
// observers being added, which will have already processed the add.
« no previous file with comments | « services/ui/ws/user_id_tracker.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698