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

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

Issue 2417463009: Remove usage of FOR_EACH_OBSERVER macro in ui/views/. (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..25e85e5379076f3d0d9168f0e6892352a104e4de 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 (auto& 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