OLD | NEW |
(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 |
OLD | NEW |