| Index: content/browser/renderer_host/render_process_host_impl.cc
|
| diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc
|
| index 467adf904be9c863a56162f47bb8610c6d04154e..5f830051939d31559c94f39ab2dbbf82bef73c24 100644
|
| --- a/content/browser/renderer_host/render_process_host_impl.cc
|
| +++ b/content/browser/renderer_host/render_process_host_impl.cc
|
| @@ -99,6 +99,7 @@
|
| #include "content/browser/renderer_host/render_widget_helper.h"
|
| #include "content/browser/renderer_host/render_widget_host_impl.h"
|
| #include "content/browser/renderer_host/text_input_client_message_filter.h"
|
| +#include "content/browser/renderer_host/vr_message_filter.h"
|
| #include "content/browser/renderer_host/websocket_dispatcher_host.h"
|
| #include "content/browser/resolve_proxy_msg_helper.h"
|
| #include "content/browser/service_worker/service_worker_context_wrapper.h"
|
| @@ -932,6 +933,9 @@ void RenderProcessHostImpl::CreateMessageFilters() {
|
| BluetoothDispatcherHost::Create());
|
| AddFilter(bluetooth_dispatcher_host.get());
|
| }
|
| + if (browser_command_line.HasSwitch(switches::kEnableWebVR)) {
|
| + AddFilter(new VRMessageFilter());
|
| + }
|
| }
|
|
|
| void RenderProcessHostImpl::RegisterMojoServices() {
|
| @@ -1299,6 +1303,7 @@ void RenderProcessHostImpl::PropagateBrowserCommandLineToRenderer(
|
| switches::kEnableVtune,
|
| switches::kEnableWebGLDraftExtensions,
|
| switches::kEnableWebGLImageChromium,
|
| + switches::kEnableWebVR,
|
| switches::kExplicitlyAllowedPorts,
|
| switches::kForceDeviceScaleFactor,
|
| switches::kForceDisplayList2dCanvas,
|
|
|