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

Unified Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 829803003: Adding Chrome-side WebVR interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More nit squashing Created 5 years, 9 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/android/browser_jni_registrar.cc ('k') | content/browser/renderer_host/vr_message_filter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 24f0286b8648cb418ad44a2ba1be8f9ef1d0ad08..fae49c66ac897543084a0d4ec24395c60d91c015 100644
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -95,6 +95,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/cache_storage_context_impl.h"
@@ -914,6 +915,7 @@ void RenderProcessHostImpl::CreateMessageFilters() {
AddFilter(new GamepadBrowserMessageFilter());
AddFilter(new DeviceLightMessageFilter());
+ AddFilter(new VRMessageFilter());
no sievers 2015/03/27 20:45:38 Can you add the filter only if the cmdline is set?
AddFilter(new DeviceMotionMessageFilter());
AddFilter(new DeviceOrientationMessageFilter());
AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER));
@@ -1305,6 +1307,7 @@ void RenderProcessHostImpl::PropagateBrowserCommandLineToRenderer(
switches::kEnableVtune,
switches::kEnableWebGLDraftExtensions,
switches::kEnableWebGLImageChromium,
+ switches::kEnableWebVR,
switches::kForceDeviceScaleFactor,
switches::kForceDisplayList2dCanvas,
switches::kFullMemoryCrashReport,
« no previous file with comments | « content/browser/android/browser_jni_registrar.cc ('k') | content/browser/renderer_host/vr_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698