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

Unified Diff: services/device/device_service.cc

Issue 2603553002: Ports VRService to be hosted in the device service.
Patch Set: Ports VRService to be hosted in the device service. 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/device/device_service.h ('k') | services/device/manifest.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/device/device_service.cc
diff --git a/services/device/device_service.cc b/services/device/device_service.cc
index 5578cf572561fad39f81222944898cb136b2c03c..204f38f15a649d415dfe35c642b9cc584aaf6f59 100644
--- a/services/device/device_service.cc
+++ b/services/device/device_service.cc
@@ -109,6 +109,10 @@ void DeviceService::OnStart() {
registry_.AddInterface<mojom::BatteryMonitor>(this);
registry_.AddInterface<mojom::VibrationManager>(this);
#endif
+
+#if BUILDFLAG(ENABLE_VR)
+ registry_.AddInterface<mojom::VRService>(this);
+#endif
}
void DeviceService::OnBindInterface(
@@ -239,6 +243,13 @@ void DeviceService::Create(const service_manager::Identity& remote_identity,
}
void DeviceService::Create(const service_manager::Identity& remote_identity,
+ mojom::VRServiceRequest request) {
+#if BUILDFLAG(ENABLE_VR)
+ device::VRServiceImpl::Create(std::move(request));
+#endif
+}
+
+void DeviceService::Create(const service_manager::Identity& remote_identity,
mojom::WakeLockContextProviderRequest request) {
WakeLockContextProvider::Create(std::move(request), file_task_runner_,
wake_lock_context_callback_);
« no previous file with comments | « services/device/device_service.h ('k') | services/device/manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698