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

Unified Diff: components/arc/arc_service_manager.cc

Issue 1553613002: Add ArcAuthService to handle IPC request from ARC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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_service_manager.h ('k') | components/arc/auth/arc_auth_service.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 0e18308aa106ba1c5455188d3aae6b61bb4c44fa..38553782dc0e3c9c2ac1f09f5256fcb31480e9ca 100644
--- a/components/arc/arc_service_manager.cc
+++ b/components/arc/arc_service_manager.cc
@@ -8,6 +8,7 @@
#include "base/thread_task_runner_handle.h"
#include "components/arc/arc_bridge_bootstrap.h"
#include "components/arc/arc_bridge_service_impl.h"
+#include "components/arc/auth/arc_auth_service.h"
#include "components/arc/input/arc_input_bridge.h"
#include "components/arc/power/arc_power_bridge.h"
#include "components/arc/settings/arc_settings_bridge.h"
@@ -22,16 +23,19 @@ ArcServiceManager* g_arc_service_manager = nullptr;
} // namespace
ArcServiceManager::ArcServiceManager(
+ scoped_ptr<ArcAuthService> auth_service,
scoped_ptr<ArcSettingsBridge> settings_bridge)
: arc_bridge_service_(
new ArcBridgeServiceImpl(ArcBridgeBootstrap::Create())),
- arc_settings_bridge_(std::move(settings_bridge)) {
+ arc_auth_service_(std::move(auth_service)),
+ arc_input_bridge_(ArcInputBridge::Create(arc_bridge_service_.get())),
+ arc_settings_bridge_(std::move(settings_bridge)),
+ arc_power_bridge_(new ArcPowerBridge(arc_bridge_service_.get())) {
DCHECK(!g_arc_service_manager);
- arc_input_bridge_ = ArcInputBridge::Create(arc_bridge_service_.get());
- arc_power_bridge_.reset(new ArcPowerBridge(arc_bridge_service_.get()));
g_arc_service_manager = this;
arc_settings_bridge_->StartObservingBridgeServiceChanges();
+ arc_auth_service_->StartObservingBridgeServiceChanges();
}
ArcServiceManager::~ArcServiceManager() {
« no previous file with comments | « components/arc/arc_service_manager.h ('k') | components/arc/auth/arc_auth_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698