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

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

Issue 16781002: Vibration API: plumbing from Blink to Java. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 7 years, 5 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/vibration_message_filter.cc ('k') | content/common/view_messages.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 ea0ac5c22c0317da02c86270e19bd701ae83639a..931e47d62a98d2c48362fc9096079f583f577cae 100644
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -133,6 +133,10 @@
#include "webkit/glue/resource_type.h"
#include "webkit/plugins/plugin_switches.h"
+#if defined(OS_ANDROID)
+#include "content/browser/android/vibration_message_filter.h"
+#endif
+
#if defined(OS_WIN)
#include "base/win/scoped_com_initializer.h"
#include "content/common/font_cache_dispatcher_win.h"
@@ -721,6 +725,9 @@ void RenderProcessHostImpl::CreateMessageFilters() {
switches::kEnableMemoryBenchmarking))
channel_->AddFilter(new MemoryBenchmarkMessageFilter());
#endif
+#if defined(OS_ANDROID)
+ channel_->AddFilter(new VibrationMessageFilter());
+#endif
}
int RenderProcessHostImpl::GetNextRoutingID() {
« no previous file with comments | « content/browser/android/vibration_message_filter.cc ('k') | content/common/view_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698