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

Unified Diff: services/identity/identity_service.cc

Issue 2753753007: Introduce Identity Service and its initial usage (Closed)
Patch Set: Response to reviews Created 3 years, 9 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 | « services/identity/identity_service.h ('k') | services/identity/manifest.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/identity/identity_service.cc
diff --git a/services/identity/identity_service.cc b/services/identity/identity_service.cc
new file mode 100644
index 0000000000000000000000000000000000000000..1e780b4efc3654b0c8afe12f43a7ae29cb9bee13
--- /dev/null
+++ b/services/identity/identity_service.cc
@@ -0,0 +1,32 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "services/identity/identity_service.h"
+
+#include "services/identity/identity_manager.h"
+#include "services/service_manager/public/cpp/connection.h"
+#include "services/service_manager/public/cpp/interface_registry.h"
+#include "services/service_manager/public/cpp/service_context.h"
+
+namespace identity {
+
+IdentityService::IdentityService(SigninManagerBase* signin_manager)
+ : signin_manager_(signin_manager) {}
+
+IdentityService::~IdentityService() {}
+
+void IdentityService::OnStart() {}
+
+bool IdentityService::OnConnect(const service_manager::ServiceInfo& remote_info,
+ service_manager::InterfaceRegistry* registry) {
+ registry->AddInterface<mojom::IdentityManager>(this);
+ return true;
+}
+
+void IdentityService::Create(const service_manager::Identity& remote_identity,
+ mojom::IdentityManagerRequest request) {
+ IdentityManager::Create(std::move(request), signin_manager_);
+}
+
+} // namespace identity
« no previous file with comments | « services/identity/identity_service.h ('k') | services/identity/manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698