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

Unified Diff: components/arc/arc_bridge_service.cc

Issue 1966133002: Run RemoveArcData after a user has opted out (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adressed comments Created 4 years, 6 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 | « components/arc/arc_bridge_service.h ('k') | components/arc/arc_service_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/arc/arc_bridge_service.cc
diff --git a/components/arc/arc_bridge_service.cc b/components/arc/arc_bridge_service.cc
index a78597744706fba261f22f5f81dcad6e9511da71..7992def82feac31479424e453698a369e2f1f8c4 100644
--- a/components/arc/arc_bridge_service.cc
+++ b/components/arc/arc_bridge_service.cc
@@ -590,6 +590,10 @@ void ArcBridgeService::SetState(State state) {
state_ = state;
VLOG(2) << "State: " << static_cast<uint32_t>(state_);
FOR_EACH_OBSERVER(Observer, observer_list(), OnStateChanged(state_));
+ if (state_ == State::READY)
+ FOR_EACH_OBSERVER(Observer, observer_list(), OnBridgeReady());
+ else if (state == State::STOPPED)
+ FOR_EACH_OBSERVER(Observer, observer_list(), OnBridgeStopped());
}
void ArcBridgeService::SetAvailable(bool available) {
« no previous file with comments | « components/arc/arc_bridge_service.h ('k') | components/arc/arc_service_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698