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

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

Issue 10698046: Implements part of Device Motion in the Renderer (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Implements new WebKit API, rebases after large refactorings Created 8 years, 4 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/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 0c220a02c8eac8052c6497ead716d2097ed8d637..f0c08cd047b3e4b4886428421203b656cddc4afd 100644
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -45,6 +45,7 @@
#include "content/browser/browser_main.h"
#include "content/browser/browser_main_loop.h"
#include "content/browser/child_process_security_policy_impl.h"
+#include "content/browser/device_orientation/motion_message_filter.h"
#include "content/browser/device_orientation/orientation_message_filter.h"
#include "content/browser/dom_storage/dom_storage_context_impl.h"
#include "content/browser/dom_storage/dom_storage_message_filter.h"
@@ -566,6 +567,7 @@ void RenderProcessHostImpl::CreateMessageFilters() {
browser_context->GetRequestContext(),
BrowserContext::GetFileSystemContext(browser_context),
ChromeBlobStorageContext::GetFor(browser_context)));
+ channel_->AddFilter(new device_orientation::MotionMessageFilter());
channel_->AddFilter(new device_orientation::OrientationMessageFilter());
channel_->AddFilter(new FileUtilitiesMessageFilter(GetID()));
channel_->AddFilter(new MimeRegistryMessageFilter());
@@ -753,6 +755,7 @@ void RenderProcessHostImpl::PropagateBrowserCommandLineToRenderer(
switches::kDomAutomationController,
switches::kEnableAccessibilityLogging,
switches::kEnableDCHECK,
+ switches::kEnableDeviceMotion,
switches::kEnableEncryptedMedia,
switches::kEnableFixedLayout,
switches::kEnableGPUServiceLogging,

Powered by Google App Engine
This is Rietveld 408576698