diff options
author | satish@chromium.org <satish@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-11 11:31:37 +0000 |
---|---|---|
committer | satish@chromium.org <satish@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-11 11:31:37 +0000 |
commit | c6a6be1ba8f6f7e4c9a25d6df9d40cded0c09484 (patch) | |
tree | c308df69e340d9c909f96b88964bc9e9df9cb9b2 | |
parent | c8e515354bc041815ca1ae7cbceba7954550e61c (diff) | |
download | chromium_src-c6a6be1ba8f6f7e4c9a25d6df9d40cded0c09484.zip chromium_src-c6a6be1ba8f6f7e4c9a25d6df9d40cded0c09484.tar.gz chromium_src-c6a6be1ba8f6f7e4c9a25d6df9d40cded0c09484.tar.bz2 |
Address Andrei's comments from CL 3164002
TEST=none
BUG=none
Review URL: http://codereview.chromium.org/3163004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55705 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/speech/speech_recognition_request.cc | 6 |
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(); |