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

Unified Diff: services/device/device_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/data_decoder/data_decoder_service.cc ('k') | services/device/device_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/device/device_service.h
diff --git a/services/device/device_service.h b/services/device/device_service.h
index c4ed1276751911e1f61d33dbedad2bdc477e92d3..4291e7f25668253853457e105cb96eda214d563e 100644
--- a/services/device/device_service.h
+++ b/services/device/device_service.h
@@ -18,6 +18,7 @@
#include "services/device/public/interfaces/fingerprint.mojom.h"
#include "services/device/public/interfaces/power_monitor.mojom.h"
#include "services/device/public/interfaces/time_zone_monitor.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/interface_provider.h"
#include "services/service_manager/public/cpp/service.h"
@@ -75,8 +76,9 @@ class DeviceService
private:
// service_manager::Service:
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::Fingerprint>:
void Create(const service_manager::Identity& remote_identity,
@@ -142,6 +144,8 @@ class DeviceService
WakeLockContextCallback wake_lock_context_callback_;
+ service_manager::BinderRegistry registry_;
+
DISALLOW_COPY_AND_ASSIGN(DeviceService);
};
« no previous file with comments | « services/data_decoder/data_decoder_service.cc ('k') | services/device/device_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698