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

Unified Diff: content/browser/frame_host/render_frame_host_impl.cc

Issue 2078433002: [sensors] Introduce Generic Sensor API interfaces (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Interfaces + implementation of common part. Created 4 years, 6 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/frame_host/render_frame_host_impl.cc
diff --git a/content/browser/frame_host/render_frame_host_impl.cc b/content/browser/frame_host/render_frame_host_impl.cc
index 7a13a828ab98c692dd2ef81743faed2bc8c9e591..2747d17831d46c4e5dfaab272e4061ffe3cfe7bf 100644
--- a/content/browser/frame_host/render_frame_host_impl.cc
+++ b/content/browser/frame_host/render_frame_host_impl.cc
@@ -79,6 +79,7 @@
#include "content/public/common/isolated_world_ids.h"
#include "content/public/common/url_constants.h"
#include "content/public/common/url_utils.h"
+#include "device/sensors/sensor_service.h"
#include "device/vibration/vibration_manager_impl.h"
#include "ui/accessibility/ax_tree.h"
#include "ui/accessibility/ax_tree_update.h"
@@ -2029,6 +2030,11 @@ void RenderFrameHostImpl::RegisterMojoServices() {
base::Bind(&device::VRDeviceManager::BindRequest));
}
#endif
+ // TODO(Mikhail): Add cmd line switch for sensors.
+ GetServiceRegistry()->AddService(
+ base::Bind(&device::SensorService::BindRequest,
+ base::RetainedRef(BrowserThread::GetMessageLoopProxyForThread(
+ BrowserThread::IO))));
GetContentClient()->browser()->RegisterRenderFrameMojoServices(
GetServiceRegistry(), this);
« no previous file with comments | « content/browser/DEPS ('k') | device/sensors/BUILD.gn » ('j') | device/sensors/mojo/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698