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

Unified Diff: ui/app_list/views/app_list_view.cc

Issue 2422873002: Remove usage of FOR_EACH_OBSERVER macro in ui/app_list (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/app_list/speech_ui_model.cc ('k') | ui/app_list/views/top_icon_animation_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/views/app_list_view.cc
diff --git a/ui/app_list/views/app_list_view.cc b/ui/app_list/views/app_list_view.cc
index beffb2960eec8e47154c27ffff64942358b4cc6b..893d005bc7e824f35954000a67ff7d4c783266e1 100644
--- a/ui/app_list/views/app_list_view.cc
+++ b/ui/app_list/views/app_list_view.cc
@@ -621,9 +621,10 @@ void AppListView::OnWidgetActivationChanged(views::Widget* widget,
bool active) {
// Do not called inherited function as the bubble delegate auto close
// functionality is not used.
- if (widget == GetWidget())
- FOR_EACH_OBSERVER(AppListViewObserver, observers_,
- OnActivationChanged(widget, active));
+ if (widget == GetWidget()) {
+ for (auto& observer : observers_)
+ observer.OnActivationChanged(widget, active);
+ }
}
void AppListView::OnWidgetVisibilityChanged(views::Widget* widget,
« no previous file with comments | « ui/app_list/speech_ui_model.cc ('k') | ui/app_list/views/top_icon_animation_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698