| 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
|
|
|