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

Unified Diff: services/identity/identity_service.h

Issue 2795883002: Eliminate OnConnect usage (Closed)
Patch Set: . Created 3 years, 8 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/file/file_service.cc ('k') | services/identity/identity_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/identity/identity_service.h
diff --git a/services/identity/identity_service.h b/services/identity/identity_service.h
index b2fd9c796c6e7c4dfea42859103844c08f8a68bb..4d1192fdb4de2fe94acd296ca57cf288ed7bcf9b 100644
--- a/services/identity/identity_service.h
+++ b/services/identity/identity_service.h
@@ -6,6 +6,7 @@
#define SERVICES_IDENTITY_IDENTITY_SERVICE_H_
#include "services/identity/public/interfaces/identity_manager.mojom.h"
+#include "services/service_manager/public/cpp/binder_registry.h"
#include "services/service_manager/public/cpp/interface_factory.h"
#include "services/service_manager/public/cpp/service.h"
@@ -23,8 +24,9 @@ class IdentityService
private:
// |Service| override:
void OnStart() override;
- bool OnConnect(const service_manager::ServiceInfo& remote_info,
- service_manager::InterfaceRegistry* registry) override;
+ void OnBindInterface(const service_manager::ServiceInfo& source_info,
+ const std::string& interface_name,
+ mojo::ScopedMessagePipeHandle interface_pipe) override;
// InterfaceFactory<mojom::IdentityManager>:
void Create(const service_manager::Identity& remote_identity,
@@ -32,6 +34,8 @@ class IdentityService
SigninManagerBase* signin_manager_;
+ service_manager::BinderRegistry registry_;
+
DISALLOW_COPY_AND_ASSIGN(IdentityService);
};
« no previous file with comments | « services/file/file_service.cc ('k') | services/identity/identity_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698