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

Unified Diff: chrome/browser/background/background_application_list_model.cc

Issue 2426223002: Reduce FOR_EACH_OBSERVER macro usage in chrome/browser (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 | « chrome/browser/app_controller_mac.mm ('k') | chrome/browser/background/background_contents.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/background/background_application_list_model.cc
diff --git a/chrome/browser/background/background_application_list_model.cc b/chrome/browser/background/background_application_list_model.cc
index c37dae638873c9523a556d5395c2a9a7ea3a78cd..dfe9e251e5ed9ddba2be02873ad5714e50391a44 100644
--- a/chrome/browser/background/background_application_list_model.cc
+++ b/chrome/browser/background/background_application_list_model.cc
@@ -330,8 +330,8 @@ void BackgroundApplicationListModel::Observe(
void BackgroundApplicationListModel::SendApplicationDataChangedNotifications(
const Extension* extension) {
- FOR_EACH_OBSERVER(Observer, observers_, OnApplicationDataChanged(extension,
- profile_));
+ for (auto& observer : observers_)
+ observer.OnApplicationDataChanged(extension, profile_);
}
void BackgroundApplicationListModel::OnExtensionLoaded(
@@ -398,6 +398,7 @@ void BackgroundApplicationListModel::Update() {
}
if (old_cursor != extensions_.end() || new_cursor != extensions.end()) {
extensions_ = extensions;
- FOR_EACH_OBSERVER(Observer, observers_, OnApplicationListChanged(profile_));
+ for (auto& observer : observers_)
+ observer.OnApplicationListChanged(profile_);
}
}
« no previous file with comments | « chrome/browser/app_controller_mac.mm ('k') | chrome/browser/background/background_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698