| 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 370bd2f436bcc2618698e033425cc6cbc59a6695..37097920eb831d81145d6034e9575809fcc46aec 100644
|
| --- a/content/browser/frame_host/render_frame_host_impl.cc
|
| +++ b/content/browser/frame_host/render_frame_host_impl.cc
|
| @@ -81,6 +81,7 @@
|
| #include "content/public/common/mojo_shell_connection.h"
|
| #include "content/public/common/url_constants.h"
|
| #include "content/public/common/url_utils.h"
|
| +#include "device/generic_sensor/sensor_provider_impl.h"
|
| #include "device/geolocation/geolocation_service_context.h"
|
| #include "device/vibration/vibration_manager_impl.h"
|
| #include "media/mojo/interfaces/media_service.mojom.h"
|
| @@ -2149,6 +2150,12 @@ void RenderFrameHostImpl::RegisterMojoInterfaces() {
|
| base::Bind(&device::VRServiceImpl::BindRequest));
|
| }
|
| #endif
|
| + if (base::CommandLine::ForCurrentProcess()->HasSwitch(
|
| + switches::kEnableGenericSensors)) {
|
| + GetInterfaceRegistry()->AddInterface(
|
| + base::Bind(&device::SensorProviderImpl::Create),
|
| + BrowserThread::GetTaskRunnerForThread(BrowserThread::IO));
|
| + }
|
|
|
| GetContentClient()->browser()->RegisterRenderFrameMojoInterfaces(
|
| GetInterfaceRegistry(), this);
|
|
|