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

Unified Diff: components/arc/arc_service_manager.cc

Issue 2436763004: More graceful shutdown for ArcSession. (Closed)
Patch Set: Add StopArcInstance 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
« no previous file with comments | « components/arc/arc_bridge_service_unittest.cc ('k') | components/arc/arc_session.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/arc/arc_service_manager.cc
diff --git a/components/arc/arc_service_manager.cc b/components/arc/arc_service_manager.cc
index 0e47eb5017f972837e6523ae1491fec654dc0d7c..d01482f21739fbc38cca533a60432ee39f97af68 100644
--- a/components/arc/arc_service_manager.cc
+++ b/components/arc/arc_service_manager.cc
@@ -51,7 +51,7 @@ ArcServiceManager::ArcServiceManager(
arc_bridge_service_.reset(g_arc_bridge_service_for_testing);
g_arc_bridge_service_for_testing = nullptr;
} else {
- arc_bridge_service_.reset(new ArcBridgeServiceImpl());
+ arc_bridge_service_.reset(new ArcBridgeServiceImpl(blocking_task_runner));
}
AddService(base::MakeUnique<ArcAudioBridge>(arc_bridge_service()));
@@ -107,6 +107,7 @@ void ArcServiceManager::Shutdown() {
icon_loader_ = nullptr;
activity_resolver_ = nullptr;
services_.clear();
+ arc_bridge_service_->OnShutdown();
}
// static
« no previous file with comments | « components/arc/arc_bridge_service_unittest.cc ('k') | components/arc/arc_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698