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

Unified Diff: content/browser/speech/speech_recognition_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/speech_recognition_dispatcher_host.cc
diff --git a/content/browser/speech/speech_recognition_dispatcher_host.cc b/content/browser/speech/speech_recognition_dispatcher_host.cc
index 85799d1ce65277d128f3eb803b341a71ca87b6ac..1b42f2f911fe3a7f7036eea1c3eb2a337cdc3b53 100644
--- a/content/browser/speech/speech_recognition_dispatcher_host.cc
+++ b/content/browser/speech/speech_recognition_dispatcher_host.cc
@@ -23,7 +23,8 @@ SpeechRecognitionDispatcherHost::SpeechRecognitionDispatcherHost(
bool is_guest,
int render_process_id,
net::URLRequestContextGetter* context_getter)
- : is_guest_(is_guest),
+ : BrowserMessageFilter(SpeechRecognitionMsgStart),
+ is_guest_(is_guest),
render_process_id_(render_process_id),
context_getter_(context_getter) {
// Do not add any non-trivial initialization here, instead do it lazily when

Powered by Google App Engine
This is Rietveld 408576698