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

Unified Diff: ui/views/focus/widget_focus_manager.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/focus/focus_manager.cc ('k') | ui/views/mus/pointer_watcher_event_router.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/focus/widget_focus_manager.cc
diff --git a/ui/views/focus/widget_focus_manager.cc b/ui/views/focus/widget_focus_manager.cc
index 65365a4385f17addcf253a4176d070f4c02faad0..2bced9b2670ed9226c1dc8379c3ea793d40f4570 100644
--- a/ui/views/focus/widget_focus_manager.cc
+++ b/ui/views/focus/widget_focus_manager.cc
@@ -27,8 +27,8 @@ void WidgetFocusManager::RemoveFocusChangeListener(
void WidgetFocusManager::OnNativeFocusChanged(gfx::NativeView focused_now) {
if (enabled_) {
- FOR_EACH_OBSERVER(WidgetFocusChangeListener, focus_change_listeners_,
- OnNativeFocusChanged(focused_now));
+ for (auto& observer : focus_change_listeners_)
+ observer.OnNativeFocusChanged(focused_now);
}
}
« no previous file with comments | « ui/views/focus/focus_manager.cc ('k') | ui/views/mus/pointer_watcher_event_router.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698