| Index: content/renderer/render_frame_impl.cc
|
| diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
|
| index f40c422299ac9de62cdefd2154974d527c1ffba1..e2420b1efa6b025cf9c353ef4d26fe8337eb0443 100644
|
| --- a/content/renderer/render_frame_impl.cc
|
| +++ b/content/renderer/render_frame_impl.cc
|
| @@ -63,6 +63,7 @@
|
| #include "content/public/common/bindings_policy.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/context_menu_params.h"
|
| #include "content/public/common/isolated_world_ids.h"
|
| @@ -4287,6 +4288,9 @@ blink::WebBluetooth* RenderFrameImpl::bluetooth() {
|
| }
|
|
|
| blink::WebUSBClient* RenderFrameImpl::usbClient() {
|
| + if (!base::FeatureList::IsEnabled(features::kWebUsb))
|
| + return nullptr;
|
| +
|
| if (!usb_client_)
|
| usb_client_.reset(new WebUSBClientImpl(GetServiceRegistry()));
|
|
|
|
|