summaryrefslogtreecommitdiffstats
path: root/chrome/browser/speech/speech_recognition_request.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/speech/speech_recognition_request.cc')
-rw-r--r--chrome/browser/speech/speech_recognition_request.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/chrome/browser/speech/speech_recognition_request.cc b/chrome/browser/speech/speech_recognition_request.cc
index 7a26d22..9e6cc41 100644
--- a/chrome/browser/speech/speech_recognition_request.cc
+++ b/chrome/browser/speech/speech_recognition_request.cc
@@ -108,8 +108,12 @@ bool SpeechRecognitionRequest::Send(const std::string& audio_data) {
url_fetcher_id_for_tests, url_, URLFetcher::POST, this));
url_fetcher_->set_upload_data(kMimeRawAudio, audio_data);
url_fetcher_->set_request_context(url_context_);
+
+ // The speech recognition API does not require user identification as part
+ // of requests, so we don't send cookies or auth data for these requests to
+ // prevent any accidental connection between users who are logged into the
+ // domain for other services (e.g. bookmark sync) with the speech requests.
url_fetcher_->set_load_flags(
- net::LOAD_BYPASS_CACHE | net::LOAD_DISABLE_CACHE |
net::LOAD_DO_NOT_SAVE_COOKIES | net::LOAD_DO_NOT_SEND_COOKIES |
net::LOAD_DO_NOT_SEND_AUTH_DATA);
url_fetcher_->Start();