| 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 52345e04877a1d2f99b16f27664c081591ff0c89..8c06b29a3859f544e4cdd63e8f28c70ac37ccc0f 100644
|
| --- a/content/browser/speech/speech_recognition_request.cc
|
| +++ b/content/browser/speech/speech_recognition_request.cc
|
| @@ -10,6 +10,7 @@
|
| #include "base/string_number_conversions.h"
|
| #include "base/string_util.h"
|
| #include "base/values.h"
|
| +#include "content/browser/speech/speech_input_preferences.h"
|
| #include "net/base/escape.h"
|
| #include "net/base/load_flags.h"
|
| #include "net/url_request/url_request_context.h"
|
| @@ -122,7 +123,7 @@ SpeechRecognitionRequest::~SpeechRecognitionRequest() {}
|
|
|
| void SpeechRecognitionRequest::Start(const std::string& language,
|
| const std::string& grammar,
|
| - bool censor_results,
|
| + SpeechInputPreferences* speech_input_prefs,
|
| const std::string& hardware_info,
|
| const std::string& origin_url,
|
| const std::string& content_type) {
|
| @@ -151,7 +152,8 @@ 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(speech_input_prefs->censor_results()
|
| + ? "pfilter=2" : "pfilter=0");
|
|
|
| GURL url(std::string(kDefaultSpeechRecognitionUrl) + JoinString(parts, '&'));
|
|
|
|
|