Chromium Code Reviews| 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 0397f3d7d258ad04abf75ca000621eb12f3d400c..fbc9fedf4cfe36c0c2b76d8b3e36e3b739564262 100644 |
| --- a/content/browser/renderer_host/render_process_host_impl.cc |
| +++ b/content/browser/renderer_host/render_process_host_impl.cc |
| @@ -97,6 +97,7 @@ |
| #include "content/browser/storage_partition_impl.h" |
| #include "content/browser/streams/stream_context.h" |
| #include "content/browser/tracing/trace_message_filter.h" |
| +#include "content/browser/vibration_message_filter.h" |
| #include "content/browser/webui/web_ui_controller_factory_registry.h" |
| #include "content/browser/worker_host/worker_message_filter.h" |
| #include "content/browser/worker_host/worker_storage_partition.h" |
| @@ -132,10 +133,6 @@ |
| #include "webkit/browser/fileapi/sandbox_file_system_backend.h" |
| #include "webkit/common/resource_type.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" |
| @@ -696,9 +693,9 @@ void RenderProcessHostImpl::CreateMessageFilters() { |
| switches::kEnableMemoryBenchmarking)) |
| channel_->AddFilter(new MemoryBenchmarkMessageFilter()); |
| #endif |
| -#if defined(OS_ANDROID) |
| - channel_->AddFilter(new VibrationMessageFilter()); |
| -#endif |
| + VibrationMessageFilter* vibra_filter = VibrationMessageFilter::Create(); |
|
Avi (use Gerrit)
2013/09/12 05:05:58
You can spell out "vibration".
|
| + if (vibra_filter) |
| + channel_->AddFilter(vibra_filter); |
| } |
| int RenderProcessHostImpl::GetNextRoutingID() { |