| 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 032399bd0fbdd103a1fb7d1fb8114284be1d7910..63578037279d3887b1db43d9ebbe97a11c24fa09 100644
|
| --- a/content/browser/frame_host/render_frame_host_impl.cc
|
| +++ b/content/browser/frame_host/render_frame_host_impl.cc
|
| @@ -77,6 +77,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"
|
| @@ -2193,8 +2194,7 @@ void RenderFrameHostImpl::RegisterMojoInterfaces() {
|
| 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));
|
|
|