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

Unified Diff: components/arc/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/arc_bridge_bootstrap.cc
diff --git a/components/arc/arc_bridge_bootstrap.cc b/components/arc/arc_bridge_bootstrap.cc
index 7b1656d1953fc0e06dbc63a2bbeb5926253ff2ca..3666abc6468013b630d610db83651ed3b9683415 100644
--- a/components/arc/arc_bridge_bootstrap.cc
+++ b/components/arc/arc_bridge_bootstrap.cc
@@ -483,7 +483,8 @@ void ArcBridgeBootstrapImpl::OnMojoConnected(base::ScopedFD fd) {
VLOG(2) << "Mojo is connected. ARC is running.";
state_ = State::RUNNING;
- FOR_EACH_OBSERVER(ArcBridgeBootstrap::Observer, observer_list_, OnReady());
+ for (auto& observer : observer_list_)
+ observer.OnReady();
}
void ArcBridgeBootstrapImpl::Stop() {
@@ -581,8 +582,8 @@ void ArcBridgeBootstrapImpl::OnStopped(ArcBridgeService::StopReason reason) {
VLOG(2) << "ARC session is stopped.";
arc_bridge_host_.reset();
state_ = State::STOPPED;
- FOR_EACH_OBSERVER(ArcBridgeBootstrap::Observer, observer_list_,
- OnStopped(reason));
+ for (auto& observer : observer_list_)
+ observer.OnStopped(reason);
}
} // namespace

Powered by Google App Engine
This is Rietveld 408576698