| 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 ccd8ee7a90b9ac9e586d7e55cd15a34526814c05..dc15063149d7d2b8925fcfa176e2f25323bd199c 100644
|
| --- a/content/browser/frame_host/render_frame_host_impl.cc
|
| +++ b/content/browser/frame_host/render_frame_host_impl.cc
|
| @@ -96,7 +96,6 @@
|
| #include "content/public/common/url_constants.h"
|
| #include "content/public/common/url_utils.h"
|
| #include "device/geolocation/geolocation_service_context.h"
|
| -#include "device/vr/features.h"
|
| #include "device/wake_lock/public/interfaces/wake_lock_context.mojom.h"
|
| #include "device/wake_lock/public/interfaces/wake_lock_service.mojom.h"
|
| #include "media/base/media_switches.h"
|
| @@ -129,12 +128,6 @@
|
| #include "content/browser/frame_host/popup_menu_helper_mac.h"
|
| #endif
|
|
|
| -#if BUILDFLAG(ENABLE_VR)
|
| -#include "device/vr/vr_service_impl.h" // nogncheck
|
| -#else
|
| -#include "device/vr/vr_service.mojom.h" // nogncheck
|
| -#endif
|
| -
|
| using base::TimeDelta;
|
|
|
| namespace content {
|
| @@ -249,11 +242,6 @@ 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.
|
| -}
|
| -
|
| // The following functions simplify code paths where the UI thread notifies the
|
| // ResourceDispatcherHostImpl of information pertaining to loading behavior of
|
| // frame hosts.
|
| @@ -2512,14 +2500,6 @@ void RenderFrameHostImpl::RegisterMojoInterfaces() {
|
| process_->GetID(),
|
| routing_id_));
|
|
|
| -#if BUILDFLAG(ENABLE_VR)
|
| - GetInterfaceRegistry()->AddInterface<device::mojom::VRService>(
|
| - base::Bind(&device::VRServiceImpl::Create));
|
| -#else
|
| - GetInterfaceRegistry()->AddInterface<device::mojom::VRService>(
|
| - base::Bind(&IgnoreInterfaceRequest<device::mojom::VRService>));
|
| -#endif
|
| -
|
| #if BUILDFLAG(ENABLE_WEBRTC)
|
| // BrowserMainLoop::GetInstance() may be null on unit tests.
|
| if (BrowserMainLoop::GetInstance()) {
|
|
|