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

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

Issue 7086005: Context menu for "Voice recognition options" (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: No changes (Just trying to get commit-bot to wake up) Created 9 years, 5 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
« no previous file with comments | « content/browser/speech/speech_recognizer.h ('k') | content/browser/speech/speech_recognizer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/speech/speech_recognizer.cc
diff --git a/content/browser/speech/speech_recognizer.cc b/content/browser/speech/speech_recognizer.cc
index 3c44401dc1184f0f6007d5dbe0511f071d1c17a2..e6d32ee7c0565806f42e932ab4eceb7917fa5bf8 100644
--- a/content/browser/speech/speech_recognizer.cc
+++ b/content/browser/speech/speech_recognizer.cc
@@ -58,12 +58,14 @@ SpeechRecognizer::SpeechRecognizer(Delegate* delegate,
int caller_id,
const std::string& language,
const std::string& grammar,
+ bool censor_results,
const std::string& hardware_info,
const std::string& origin_url)
: delegate_(delegate),
caller_id_(caller_id),
language_(language),
grammar_(grammar),
+ censor_results_(censor_results),
hardware_info_(hardware_info),
origin_url_(origin_url),
codec_(AudioEncoder::CODEC_FLAC),
@@ -223,8 +225,8 @@ void SpeechRecognizer::HandleOnData(string* data) {
delegate_->DidStartReceivingAudio(caller_id_);
request_.reset(new SpeechRecognitionRequest(
Profile::Deprecated::GetDefaultRequestContext(), this));
- request_->Start(language_, grammar_, hardware_info_, origin_url_,
- encoder_->mime_type());
+ request_->Start(language_, grammar_, censor_results_, hardware_info_,
+ origin_url_, encoder_->mime_type());
}
string encoded_data;
« no previous file with comments | « content/browser/speech/speech_recognizer.h ('k') | content/browser/speech/speech_recognizer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698