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

Unified Diff: chrome/browser/sync/glue/http_bridge.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/sync/glue/http_bridge.cc
diff --git a/chrome/browser/sync/glue/http_bridge.cc b/chrome/browser/sync/glue/http_bridge.cc
index 7e39b473373fc1f15cc828ca10a3ecbf7a2355ab..2383a523c0a5faa92f060e9933b0727e181f87e1 100644
--- a/chrome/browser/sync/glue/http_bridge.cc
+++ b/chrome/browser/sync/glue/http_bridge.cc
@@ -9,6 +9,7 @@
#include "base/string_number_conversions.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/common/content_client.h"
+#include "content/public/common/content_url_request_user_data.h"
#include "content/public/common/url_fetcher.h"
#include "net/base/cookie_monster.h"
#include "net/base/host_resolver.h"
@@ -222,6 +223,9 @@ void HttpBridge::MakeAsynchronousPost() {
fetch_state_.url_poster = content::URLFetcher::Create(
url_for_request_, content::URLFetcher::POST, this);
fetch_state_.url_poster->SetRequestContext(context_getter_for_request_);
+ // TODO(jochen): Do cookie audit.
+ fetch_state_.url_poster->SetContentURLRequestUserData(
+ new content::ContentURLRequestUserData());
fetch_state_.url_poster->SetUploadData(content_type_, request_content_);
fetch_state_.url_poster->SetExtraRequestHeaders(extra_headers_);
fetch_state_.url_poster->SetLoadFlags(net::LOAD_DO_NOT_SEND_COOKIES);

Powered by Google App Engine
This is Rietveld 408576698