Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(857)

Unified Diff: content/browser/speech/speech_recognition_request.cc

Issue 9572001: Do cookie checks in NetworkDelegate instead of the URLRequest::Delegate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: clang fix Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 81761285204ff384fd35e565a347acb4720e9e8d..c302c74db74384cd251a14ef4237afb00a35a40d 100644
--- a/content/browser/speech/speech_recognition_request.cc
+++ b/content/browser/speech/speech_recognition_request.cc
@@ -11,6 +11,7 @@
#include "base/string_util.h"
#include "base/values.h"
#include "content/common/net/url_fetcher_impl.h"
+#include "content/public/common/content_url_request_user_data.h"
#include "content/public/common/speech_input_result.h"
#include "net/base/escape.h"
#include "net/base/load_flags.h"
@@ -189,6 +190,9 @@ void SpeechRecognitionRequest::Start(const std::string& language,
this));
url_fetcher_->SetChunkedUpload(content_type);
url_fetcher_->SetRequestContext(url_context_);
+ // No user data, as the request will be cookie-less.
+ url_fetcher_->SetContentURLRequestUserData(
+ new content::ContentURLRequestUserData());
url_fetcher_->SetReferrer(origin_url);
// The speech recognition API does not require user identification as part

Powered by Google App Engine
This is Rietveld 408576698