| Index: components/arc/test/fake_arc_bridge_bootstrap.cc
|
| diff --git a/components/arc/test/fake_arc_bridge_bootstrap.cc b/components/arc/test/fake_arc_bridge_bootstrap.cc
|
| index 8f4c3f729b5a978995908925f5e5be5adc663e04..28b04a02fe878fa40991528f7d2ae78a389983a9 100644
|
| --- a/components/arc/test/fake_arc_bridge_bootstrap.cc
|
| +++ b/components/arc/test/fake_arc_bridge_bootstrap.cc
|
| @@ -17,10 +17,11 @@ FakeArcBridgeBootstrap::~FakeArcBridgeBootstrap() = default;
|
|
|
| void FakeArcBridgeBootstrap::Start() {
|
| if (boot_failure_emulation_enabled_) {
|
| - FOR_EACH_OBSERVER(Observer, observer_list_,
|
| - OnStopped(boot_failure_reason_));
|
| + for (auto& observer : observer_list_)
|
| + observer.OnStopped(boot_failure_reason_);
|
| } else if (!boot_suspended_) {
|
| - FOR_EACH_OBSERVER(Observer, observer_list_, OnReady());
|
| + for (auto& observer : observer_list_)
|
| + observer.OnReady();
|
| }
|
| }
|
|
|
| @@ -30,7 +31,8 @@ void FakeArcBridgeBootstrap::Stop() {
|
|
|
| void FakeArcBridgeBootstrap::StopWithReason(
|
| ArcBridgeService::StopReason reason) {
|
| - FOR_EACH_OBSERVER(Observer, observer_list_, OnStopped(reason));
|
| + for (auto& observer : observer_list_)
|
| + observer.OnStopped(reason);
|
| }
|
|
|
| void FakeArcBridgeBootstrap::EnableBootFailureEmulation(
|
|
|