| 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;
|
|
|