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

Unified Diff: chrome/browser/spellchecker/spelling_service_client.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: chrome/browser/spellchecker/spelling_service_client.cc
diff --git a/chrome/browser/spellchecker/spelling_service_client.cc b/chrome/browser/spellchecker/spelling_service_client.cc
index 5b05d45e20443752957756861b201739925f05a9..5caa3f2fd851c865ecda2e0d64ad14f8a7102997 100644
--- a/chrome/browser/spellchecker/spelling_service_client.cc
+++ b/chrome/browser/spellchecker/spelling_service_client.cc
@@ -15,6 +15,7 @@
#include "chrome/common/pref_names.h"
#include "chrome/common/spellcheck_result.h"
#include "content/public/browser/browser_thread.h"
+#include "content/public/common/content_url_request_user_data.h"
#include "content/public/common/url_fetcher.h"
#include "net/base/load_flags.h"
#include "unicode/uloc.h"
@@ -93,6 +94,9 @@ bool SpellingServiceClient::RequestTextCheck(
fetcher_.reset(content::URLFetcher::Create(
url, content::URLFetcher::POST, this));
fetcher_->SetRequestContext(context);
+ // TODO(jochen): Do cookie audit.
+ fetcher_->SetContentURLRequestUserData(
+ new content::ContentURLRequestUserData());
fetcher_->SetUploadData("application/json", request);
fetcher_->SetLoadFlags(net::LOAD_DO_NOT_SAVE_COOKIES);
fetcher_->Start();

Powered by Google App Engine
This is Rietveld 408576698