Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Unified Diff: content/browser/frame_host/render_frame_host_impl.cc

Issue 2603553002: Ports VRService to be hosted in the device service.
Patch Set: Ports VRService to be hosted in the device service. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/DEPS ('k') | content/public/app/mojo/content_browser_manifest.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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()) {
« no previous file with comments | « content/browser/DEPS ('k') | content/public/app/mojo/content_browser_manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698