| 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 e5826c6489a6ce4ed56d28f210f938afb15d8e0b..ac12b2649be4ee7be55a128da4cba7668c3946e4 100644
|
| --- a/content/browser/frame_host/render_frame_host_impl.cc
|
| +++ b/content/browser/frame_host/render_frame_host_impl.cc
|
| @@ -82,6 +82,7 @@
|
| #include "content/public/browser/user_metrics.h"
|
| #include "content/public/common/browser_side_navigation_policy.h"
|
| #include "content/public/common/content_constants.h"
|
| +#include "content/public/common/content_features.h"
|
| #include "content/public/common/content_switches.h"
|
| #include "content/public/common/file_chooser_file_info.h"
|
| #include "content/public/common/file_chooser_params.h"
|
| @@ -2218,8 +2219,7 @@ void RenderFrameHostImpl::RegisterMojoInterfaces() {
|
| GetInterfaceRegistry()->AddInterface<device::VRService>(
|
| base::Bind(&device::VRServiceImpl::BindRequest));
|
| #endif
|
| - if (base::CommandLine::ForCurrentProcess()->HasSwitch(
|
| - switches::kEnableGenericSensors)) {
|
| + if (base::FeatureList::IsEnabled(features::kGenericSensor)) {
|
| GetInterfaceRegistry()->AddInterface(
|
| base::Bind(&device::SensorProviderImpl::Create),
|
| BrowserThread::GetTaskRunnerForThread(BrowserThread::IO));
|
|
|