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

Unified Diff: components/arc/test/fake_arc_bridge_bootstrap.cc

Issue 2416633002: Remove FOR_EACH_OBSERVER from arc/ since it's being deprecated (Closed)
Patch Set: remove braces 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
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(

Powered by Google App Engine
This is Rietveld 408576698