| Index: content/browser/speech/google_one_shot_remote_engine.cc
|
| diff --git a/content/browser/speech/google_one_shot_remote_engine.cc b/content/browser/speech/google_one_shot_remote_engine.cc
|
| index d713dfdf47d437681664bbe49cfc64f288b6ff0a..73e621eb1d2f47b58ef0f9f5eabcdf9d7595b961 100644
|
| --- a/content/browser/speech/google_one_shot_remote_engine.cc
|
| +++ b/content/browser/speech/google_one_shot_remote_engine.cc
|
| @@ -171,7 +171,10 @@ void GoogleOneShotRemoteEngine::StartRecognition() {
|
| net::URLRequestContext* request_context =
|
| url_context_->GetURLRequestContext();
|
| DCHECK(request_context);
|
| - std::string accepted_language_list = request_context->accept_language();
|
| + // TODO(pauljensen): GoogleOneShotRemoteEngine should be constructed with
|
| + // a reference to the HttpUserAgentSettings rather than accessing the
|
| + // accept language through the URLRequestContext.
|
| + std::string accepted_language_list = request_context->GetAcceptLanguage();
|
| size_t separator = accepted_language_list.find_first_of(",;");
|
| lang_param = accepted_language_list.substr(0, separator);
|
| }
|
|
|