Index: services/identity/identity_service.cc |
diff --git a/services/identity/identity_service.cc b/services/identity/identity_service.cc |
index 1e780b4efc3654b0c8afe12f43a7ae29cb9bee13..1cb95dc9d2db726999d388361bed75e60fad97c5 100644 |
--- a/services/identity/identity_service.cc |
+++ b/services/identity/identity_service.cc |
@@ -6,22 +6,25 @@ |
#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) {} |
+ : signin_manager_(signin_manager) { |
+ registry_.AddInterface<mojom::IdentityManager>(this); |
+} |
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::OnBindInterface( |
+ const service_manager::ServiceInfo& source_info, |
+ const std::string& interface_name, |
+ mojo::ScopedMessagePipeHandle interface_pipe) { |
+ registry_.BindInterface(source_info.identity, interface_name, |
+ std::move(interface_pipe)); |
} |
void IdentityService::Create(const service_manager::Identity& remote_identity, |