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

Unified Diff: ui/views/widget/desktop_aura/x11_desktop_handler.cc

Issue 2418983002: ui/views: convert usage of FOR_EACH_OBSERVER macro (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 | « ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc ('k') | ui/views/widget/widget.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/desktop_aura/x11_desktop_handler.cc
diff --git a/ui/views/widget/desktop_aura/x11_desktop_handler.cc b/ui/views/widget/desktop_aura/x11_desktop_handler.cc
index 6f4d6630284681a60fd7d9f6dbf091492e3e422e..0e9dec7673741093d2c44d9cc580b8c5b470cef9 100644
--- a/ui/views/widget/desktop_aura/x11_desktop_handler.cc
+++ b/ui/views/widget/desktop_aura/x11_desktop_handler.cc
@@ -94,8 +94,8 @@ uint32_t X11DesktopHandler::DispatchEvent(const ui::PlatformEvent& event) {
if (event->xproperty.atom ==
atom_cache_.GetAtom("_NET_CURRENT_DESKTOP")) {
if (UpdateWorkspace()) {
- FOR_EACH_OBSERVER(views::X11DesktopHandlerObserver, observers_,
- OnWorkspaceChanged(workspace_));
+ for (views::X11DesktopHandlerObserver& observer : observers_)
+ observer.OnWorkspaceChanged(workspace_);
}
}
break;
« no previous file with comments | « ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc ('k') | ui/views/widget/widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698