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

Unified Diff: content/browser/speech/input_tag_speech_dispatcher_host.cc

Issue 142923005: Allow MessageFilters to restrict listening to specific message classes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 10 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/speech/input_tag_speech_dispatcher_host.cc
diff --git a/content/browser/speech/input_tag_speech_dispatcher_host.cc b/content/browser/speech/input_tag_speech_dispatcher_host.cc
index 23169c7810547f45da2ac7379705f58797ae2ca9..e38f90f37154897d80665163afd4d012a16e4125 100644
--- a/content/browser/speech/input_tag_speech_dispatcher_host.cc
+++ b/content/browser/speech/input_tag_speech_dispatcher_host.cc
@@ -25,7 +25,8 @@ InputTagSpeechDispatcherHost::InputTagSpeechDispatcherHost(
bool is_guest,
int render_process_id,
net::URLRequestContextGetter* url_request_context_getter)
- : is_guest_(is_guest),
+ : BrowserMessageFilter(SpeechRecognitionMsgStart),
+ is_guest_(is_guest),
render_process_id_(render_process_id),
url_request_context_getter_(url_request_context_getter),
weak_factory_(this) {

Powered by Google App Engine
This is Rietveld 408576698