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

Unified Diff: components/omnibox/browser/omnibox_popup_model.cc

Issue 2444753002: 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
Index: components/omnibox/browser/omnibox_popup_model.cc
diff --git a/components/omnibox/browser/omnibox_popup_model.cc b/components/omnibox/browser/omnibox_popup_model.cc
index e8f1d92faafde7c6afb934ee3351bf0a564bdd1b..6fa120ea775bdbb75d6b7e213480eedb931b4f26 100644
--- a/components/omnibox/browser/omnibox_popup_model.cc
+++ b/components/omnibox/browser/omnibox_popup_model.cc
@@ -284,8 +284,8 @@ void OmniboxPopupModel::OnResultChanged() {
view_->UpdatePopupAppearance();
// If popup has just been shown or hidden, notify observers.
if (view_->IsOpen() != popup_was_open) {
- FOR_EACH_OBSERVER(OmniboxPopupModelObserver, observers_,
- OnOmniboxPopupShownOrHidden());
+ for (OmniboxPopupModelObserver& observer : observers_)
+ observer.OnOmniboxPopupShownOrHidden();
}
}
« no previous file with comments | « components/offline_pages/offline_page_model_impl.cc ('k') | components/omnibox/browser/shortcuts_backend.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698