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

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

Issue 2385123005: Enable WebVR origin trial experiments. (Closed)
Patch Set: rebase against ToT Created 4 years, 2 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
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 c8b5dcc9fbd8a11090cd2d404fdbcc9cc96cc1bd..7423a935902d8cc88bb6d5997bee0ad85cc1a633 100644
--- a/content/browser/frame_host/render_frame_host_impl.cc
+++ b/content/browser/frame_host/render_frame_host_impl.cc
@@ -2201,13 +2201,8 @@ void RenderFrameHostImpl::RegisterMojoInterfaces() {
routing_id_));
#if defined(ENABLE_WEBVR)
- const base::CommandLine& browser_command_line =
- *base::CommandLine::ForCurrentProcess();
-
- if (browser_command_line.HasSwitch(switches::kEnableWebVR)) {
clamy 2016/10/07 11:09:54 Why not use directly "if (base::CommandLine::ForCu
iclelland 2016/10/07 14:51:50 Isn't that line being deleted, though?
clamy 2016/10/07 14:54:40 I'm not quite sure what you mean? If you like at h
iclelland 2016/10/07 15:11:16 I mean that this CL *deletes* the line you're talk
clamy 2016/10/07 15:13:59 Sorry my bad, I read too quickly :-/.
- GetInterfaceRegistry()->AddInterface<device::VRService>(
- base::Bind(&device::VRServiceImpl::BindRequest));
- }
+ GetInterfaceRegistry()->AddInterface<device::VRService>(
+ base::Bind(&device::VRServiceImpl::BindRequest));
#endif
if (base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kEnableGenericSensors)) {

Powered by Google App Engine
This is Rietveld 408576698