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

Unified Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 1892083002: Generic Sensor API : Ambient Light Sensor API. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
Index: content/browser/renderer_host/render_process_host_impl.cc
diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc
index 2e6511c97c4e5638bfdcb4a2dee13a19ad782ab5..a4e60d04982fc655267f118604b52744f8aecca6 100644
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -159,6 +159,7 @@
#include "content/public/common/sandboxed_process_launcher_delegate.h"
#include "content/public/common/url_constants.h"
#include "device/battery/battery_monitor_impl.h"
+#include "device/sensor/sensor_impl.h"
#include "device/vibration/vibration_manager_impl.h"
#include "gpu/GLES2/gl2extchromium.h"
#include "gpu/command_buffer/client/gpu_switches.h"
@@ -1076,6 +1077,9 @@ void RenderProcessHostImpl::RegisterMojoServices() {
base::Bind(&device::BatteryMonitorImpl::Create));
mojo_application_host_->service_registry()->AddService(
+ base::Bind(&device::SensorImpl::Create));
+
+ mojo_application_host_->service_registry()->AddService(
base::Bind(&device::VibrationManagerImpl::Create));
#endif

Powered by Google App Engine
This is Rietveld 408576698