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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « services/identity/identity_service.h ('k') | services/identity/manifest.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "services/identity/identity_service.h"
6
7 #include "services/identity/identity_manager.h"
8 #include "services/service_manager/public/cpp/connection.h"
9 #include "services/service_manager/public/cpp/interface_registry.h"
10 #include "services/service_manager/public/cpp/service_context.h"
11
12 namespace identity {
13
14 IdentityService::IdentityService(SigninManagerBase* signin_manager)
15 : signin_manager_(signin_manager) {}
16
17 IdentityService::~IdentityService() {}
18
19 void IdentityService::OnStart() {}
20
21 bool IdentityService::OnConnect(const service_manager::ServiceInfo& remote_info,
22 service_manager::InterfaceRegistry* registry) {
23 registry->AddInterface<mojom::IdentityManager>(this);
24 return true;
25 }
26
27 void IdentityService::Create(const service_manager::Identity& remote_identity,
28 mojom::IdentityManagerRequest request) {
29 IdentityManager::Create(std::move(request), signin_manager_);
30 }
31
32 } // namespace identity
OLDNEW
« 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