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

Unified Diff: ui/app_list/search/history_data.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/pagination_model.cc ('k') | ui/app_list/search_box_model.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/search/history_data.cc
diff --git a/ui/app_list/search/history_data.cc b/ui/app_list/search/history_data.cc
index 388415cfcd85cea40e6700e01c8f40b9d0216451..777990beab58b0340b14d9cee57889dc16bfae0f 100644
--- a/ui/app_list/search/history_data.cc
+++ b/ui/app_list/search/history_data.cc
@@ -145,8 +145,8 @@ void HistoryData::OnStoreLoaded(std::unique_ptr<Associations> loaded_data) {
if (loaded_data)
loaded_data->swap(associations_);
- FOR_EACH_OBSERVER(
- HistoryDataObserver, observers_, OnHistoryDataLoadedFromStore());
+ for (auto& observer : observers_)
+ observer.OnHistoryDataLoadedFromStore();
}
void HistoryData::TrimEntries() {
« no previous file with comments | « ui/app_list/pagination_model.cc ('k') | ui/app_list/search_box_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698