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 7cfed988fc3a4e95fad83104a6cd7177e06664b0..19a7e4aa1eaf3344dfc0d9036c3aa1326afcb78a 100644 |
--- a/content/browser/renderer_host/render_process_host_impl.cc |
+++ b/content/browser/renderer_host/render_process_host_impl.cc |
@@ -78,6 +78,8 @@ |
#include "content/browser/renderer_host/socket_stream_dispatcher_host.h" |
#include "content/browser/renderer_host/text_input_client_message_filter.h" |
#include "content/browser/resolve_proxy_msg_helper.h" |
+#include "content/browser/speech/input_tag_speech_dispatcher_host.h" |
+#include "content/browser/speech/speech_recognition_dispatcher_host.h" |
#include "content/browser/trace_message_filter.h" |
#include "content/browser/worker_host/worker_message_filter.h" |
#include "content/common/child_process_host_impl.h" |
@@ -115,10 +117,6 @@ |
#include "content/common/font_cache_dispatcher_win.h" |
#endif |
-#if defined(ENABLE_INPUT_SPEECH) |
-#include "content/browser/speech/input_tag_speech_dispatcher_host.h" |
-#endif |
- |
#include "third_party/skia/include/core/SkBitmap.h" |
using content::BrowserContext; |
@@ -504,6 +502,10 @@ void RenderProcessHostImpl::CreateMessageFilters() { |
channel_->AddFilter(new speech::InputTagSpeechDispatcherHost( |
GetID(), browser_context->GetRequestContext(), |
browser_context->GetSpeechRecognitionPreferences())); |
+ channel_->AddFilter(new speech::SpeechRecognitionDispatcherHost( |
+ GetID(), |
Satish
2012/05/20 22:57:46
could merge this and next line as the style guide
Primiano Tucci (use gerrit)
2012/05/21 13:38:25
Done.
|
+ browser_context->GetRequestContext(), |
+ browser_context->GetSpeechRecognitionPreferences())); |
#endif |
channel_->AddFilter(new FileAPIMessageFilter( |
GetID(), |