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

Unified Diff: content/browser/speech/speech_input_manager.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_manager.cc
diff --git a/content/browser/speech/speech_input_manager.cc b/content/browser/speech/speech_input_manager.cc
index d115c89eff05dc9861e3223b998e8f22dd7ac62c..9d32c3450a73f278d23b4338d6b01bbc6a476634 100644
--- a/content/browser/speech/speech_input_manager.cc
+++ b/content/browser/speech/speech_input_manager.cc
@@ -52,7 +52,9 @@ void SpeechInputManager::StartRecognition(
const gfx::Rect& element_rect,
const std::string& language,
const std::string& grammar,
- const std::string& origin_url) {
+ const std::string& origin_url,
+ net::URLRequestContextGetter* context_getter,
+ bool censor_results) {
DCHECK(!HasPendingRequest(caller_id));
ShowRecognitionRequested(
@@ -62,7 +64,7 @@ void SpeechInputManager::StartRecognition(
SpeechInputRequest* request = &requests_[caller_id];
request->delegate = delegate;
request->recognizer = new SpeechRecognizer(
- this, caller_id, language, grammar, censor_results(),
+ this, caller_id, language, grammar, censor_results, context_getter,
request_info_, can_report_metrics_ ? origin_url : "");
request->is_active = false;

Powered by Google App Engine
This is Rietveld 408576698