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

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

Issue 8199010: Fixing misleading name a in speech input setting and related variables. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review fixes. Landing if no problems in the bots. Created 9 years, 2 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_recognition_request.h ('k') | content/browser/speech/speech_recognizer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/speech/speech_recognition_request.cc
diff --git a/content/browser/speech/speech_recognition_request.cc b/content/browser/speech/speech_recognition_request.cc
index 3a2ad7cb46c6bc39409fa9a2e68dcd45539c27a7..c61c13437bda0349c08c9ddc44431eefe03221bb 100644
--- a/content/browser/speech/speech_recognition_request.cc
+++ b/content/browser/speech/speech_recognition_request.cc
@@ -148,7 +148,7 @@ SpeechRecognitionRequest::~SpeechRecognitionRequest() {}
void SpeechRecognitionRequest::Start(const std::string& language,
const std::string& grammar,
- bool censor_results,
+ bool filter_profanities,
const std::string& hardware_info,
const std::string& origin_url,
const std::string& content_type) {
@@ -177,7 +177,7 @@ void SpeechRecognitionRequest::Start(const std::string& language,
if (!hardware_info.empty())
parts.push_back("xhw=" + net::EscapeQueryParamValue(hardware_info, true));
parts.push_back("maxresults=" + base::IntToString(kMaxResults));
- parts.push_back(censor_results ? "pfilter=2" : "pfilter=0");
+ parts.push_back(filter_profanities ? "pfilter=2" : "pfilter=0");
GURL url(std::string(kDefaultSpeechRecognitionUrl) + JoinString(parts, '&'));
« no previous file with comments | « content/browser/speech/speech_recognition_request.h ('k') | content/browser/speech/speech_recognizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698