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

Unified Diff: components/renderer_context_menu/render_view_context_menu_base.cc

Issue 2430823002: Reduce usage of FOR_EACH_OBSERVER macro in components/ (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 | « no previous file | components/search_engines/template_url_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/renderer_context_menu/render_view_context_menu_base.cc
diff --git a/components/renderer_context_menu/render_view_context_menu_base.cc b/components/renderer_context_menu/render_view_context_menu_base.cc
index b743f9e42e4930e3f45a2824e35cd8c0f6d92e75..63d8df500f6438c23031d9b5a00e28f22a499e14 100644
--- a/components/renderer_context_menu/render_view_context_menu_base.cc
+++ b/components/renderer_context_menu/render_view_context_menu_base.cc
@@ -351,9 +351,8 @@ void RenderViewContextMenuBase::MenuClosed(ui::SimpleMenuModel* source) {
source_web_contents_->NotifyContextMenuClosed(params_.custom_context);
if (!command_executed_) {
- FOR_EACH_OBSERVER(RenderViewContextMenuObserver,
- observers_,
- OnMenuCancel());
+ for (auto& observer : observers_)
+ observer.OnMenuCancel();
}
}
« no previous file with comments | « no previous file | components/search_engines/template_url_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698