Chromium Code Reviews| 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 8180844446d65471ecb6a20307273d8f332f9fd7..ff006b79f4a5a803be814bc8405ca9dc2032dbb1 100644 |
| --- a/content/browser/speech/google_one_shot_remote_engine.cc |
| +++ b/content/browser/speech/google_one_shot_remote_engine.cc |
| @@ -177,7 +177,7 @@ void GoogleOneShotRemoteEngine::StartRecognition() { |
| net::URLRequestContext* request_context = |
| url_context_->GetURLRequestContext(); |
| DCHECK(request_context); |
| - std::string accepted_language_list = request_context->accept_language(); |
| + std::string accepted_language_list = request_context->GetAcceptLanguage(); |
|
willchan no longer on Chromium
2012/10/06 19:32:49
Long-term, I think we should construct this guy wi
|
| size_t separator = accepted_language_list.find_first_of(",;"); |
| lang_param = accepted_language_list.substr(0, separator); |
| } |