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

Unified Diff: apps/app_lifetime_monitor.cc

Issue 2422543002: Remove usage of FOR_EACH_OBSERVER macro in apps/ (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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/app_lifetime_monitor.cc
diff --git a/apps/app_lifetime_monitor.cc b/apps/app_lifetime_monitor.cc
index 6051f0c1c222f58e87d483d1af11f8667dbf4268..637c90916cdbbdbdb07d8056234d4b030913528d 100644
--- a/apps/app_lifetime_monitor.cc
+++ b/apps/app_lifetime_monitor.cc
@@ -125,23 +125,28 @@ bool AppLifetimeMonitor::HasOtherVisibleAppWindows(
}
void AppLifetimeMonitor::NotifyAppStart(const std::string& app_id) {
- FOR_EACH_OBSERVER(Observer, observers_, OnAppStart(profile_, app_id));
+ for (auto& observer : observers_)
+ observer.OnAppStart(profile_, app_id);
}
void AppLifetimeMonitor::NotifyAppActivated(const std::string& app_id) {
- FOR_EACH_OBSERVER(Observer, observers_, OnAppActivated(profile_, app_id));
+ for (auto& observer : observers_)
+ observer.OnAppActivated(profile_, app_id);
}
void AppLifetimeMonitor::NotifyAppDeactivated(const std::string& app_id) {
- FOR_EACH_OBSERVER(Observer, observers_, OnAppDeactivated(profile_, app_id));
+ for (auto& observer : observers_)
+ observer.OnAppDeactivated(profile_, app_id);
}
void AppLifetimeMonitor::NotifyAppStop(const std::string& app_id) {
- FOR_EACH_OBSERVER(Observer, observers_, OnAppStop(profile_, app_id));
+ for (auto& observer : observers_)
+ observer.OnAppStop(profile_, app_id);
}
void AppLifetimeMonitor::NotifyChromeTerminating() {
- FOR_EACH_OBSERVER(Observer, observers_, OnChromeTerminating());
+ for (auto& observer : observers_)
+ observer.OnChromeTerminating();
}
} // namespace apps
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698