| 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 ef14c8360cf0d7bea2c163f1ed6a9a5496d96fa9..5a93e6115a95badafdc7b6d19cd798f620225097 100644
|
| --- a/content/browser/frame_host/render_frame_host_impl.cc
|
| +++ b/content/browser/frame_host/render_frame_host_impl.cc
|
| @@ -124,9 +124,7 @@
|
| #include "content/browser/frame_host/popup_menu_helper_mac.h"
|
| #endif
|
|
|
| -#if defined(ENABLE_WEBVR)
|
| #include "device/vr/vr_service_impl.h" // nogncheck
|
| -#endif
|
|
|
| using base::TimeDelta;
|
|
|
| @@ -238,6 +236,11 @@ class RemoterFactoryImpl final : public media::mojom::RemoterFactory {
|
| };
|
| #endif // BUILDFLAG(ENABLE_MEDIA_REMOTING)
|
|
|
| +template <typename Interface>
|
| +void IgnoreInterfaceRequest(mojo::InterfaceRequest<Interface> request) {
|
| + // Intentionally ignore the interface request.
|
| +}
|
| +
|
| } // namespace
|
|
|
| // static
|
| @@ -2271,7 +2274,11 @@ void RenderFrameHostImpl::RegisterMojoInterfaces() {
|
| #if defined(ENABLE_WEBVR)
|
| GetInterfaceRegistry()->AddInterface<device::mojom::VRService>(
|
| base::Bind(&device::VRServiceImpl::Create));
|
| +#else
|
| + GetInterfaceRegistry()->AddInterface<device::mojom::VRService>(
|
| + base::Bind(&IgnoreInterfaceRequest<device::mojom::VRService>));
|
| #endif
|
| +
|
| if (base::FeatureList::IsEnabled(features::kGenericSensor)) {
|
| GetInterfaceRegistry()->AddInterface(
|
| base::Bind(&device::SensorProviderImpl::Create,
|
|
|