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

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

Issue 7989001: Remove use of default request context and fix use of speech censor flag (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: " Created 9 years, 3 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_input_dispatcher_host.cc
diff --git a/content/browser/speech/speech_input_dispatcher_host.cc b/content/browser/speech/speech_input_dispatcher_host.cc
index d8ec2d16140121412a4350d9c74074c26b8479ab..67d5c1c0cbed849c445d0c857333eb76cb4aa4a6 100644
--- a/content/browser/speech/speech_input_dispatcher_host.cc
+++ b/content/browser/speech/speech_input_dispatcher_host.cc
@@ -104,9 +104,14 @@ int SpeechInputDispatcherHost::SpeechInputCallers::request_id(int id) {
SpeechInputManager* SpeechInputDispatcherHost::manager_;
-SpeechInputDispatcherHost::SpeechInputDispatcherHost(int render_process_id)
+SpeechInputDispatcherHost::SpeechInputDispatcherHost(
+ int render_process_id,
+ net::URLRequestContextGetter* context_getter,
+ bool censor_results)
: render_process_id_(render_process_id),
- may_have_pending_requests_(false) {
+ may_have_pending_requests_(false),
+ context_getter_(context_getter),
+ censor_results_(censor_results) {
// This is initialized by Browser. Do not add any non-trivial
// initialization here, instead do it lazily when required (e.g. see the
// method |manager()|) or add an Init() method.
@@ -155,7 +160,9 @@ void SpeechInputDispatcherHost::OnStartRecognition(
render_process_id_,
params.render_view_id, params.element_rect,
params.language, params.grammar,
- params.origin_url);
+ params.origin_url,
+ context_getter_.get(),
+ censor_results_);
}
void SpeechInputDispatcherHost::OnCancelRecognition(int render_view_id,

Powered by Google App Engine
This is Rietveld 408576698