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

Unified Diff: components/arc/arc_bridge_service_impl.cc

Issue 1701063003: Refactor ArcBridgeService detection and initialization to a separate class ArcServiceLauncher. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address reviewer feedback Created 4 years, 10 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_impl.h ('k') | components/arc/test/fake_arc_bridge_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/arc/arc_bridge_service_impl.cc
diff --git a/components/arc/arc_bridge_service_impl.cc b/components/arc/arc_bridge_service_impl.cc
index 18e44a76be363fd169fe2320bb17e7ef55667a49..49ee41c3b79d1140cac4005631e0a2636c463604 100644
--- a/components/arc/arc_bridge_service_impl.cc
+++ b/components/arc/arc_bridge_service_impl.cc
@@ -34,13 +34,6 @@ ArcBridgeServiceImpl::ArcBridgeServiceImpl(
ArcBridgeServiceImpl::~ArcBridgeServiceImpl() {
}
-void ArcBridgeServiceImpl::DetectAvailability() {
- chromeos::SessionManagerClient* session_manager_client =
- chromeos::DBusThreadManager::Get()->GetSessionManagerClient();
- session_manager_client->CheckArcAvailability(base::Bind(
- &ArcBridgeServiceImpl::OnArcAvailable, weak_factory_.GetWeakPtr()));
-}
-
void ArcBridgeServiceImpl::HandleStartup() {
DCHECK(CalledOnValidThread());
session_started_ = true;
@@ -81,7 +74,7 @@ void ArcBridgeServiceImpl::StopInstance() {
bootstrap_->Stop();
}
-void ArcBridgeServiceImpl::OnArcAvailable(bool arc_available) {
+void ArcBridgeServiceImpl::SetDetectedAvailability(bool arc_available) {
DCHECK(CalledOnValidThread());
if (available() == arc_available)
return;
« no previous file with comments | « components/arc/arc_bridge_service_impl.h ('k') | components/arc/test/fake_arc_bridge_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698