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

Unified Diff: chrome/browser/net/gaia/gaia_oauth_fetcher.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/net/gaia/gaia_oauth_fetcher.cc
diff --git a/chrome/browser/net/gaia/gaia_oauth_fetcher.cc b/chrome/browser/net/gaia/gaia_oauth_fetcher.cc
index 4ee520b350ecdf3a358403c9beb6f8726561f9db..8d3c73cde2cc222ea3dac08ce4596b2df9d71530 100644
--- a/chrome/browser/net/gaia/gaia_oauth_fetcher.cc
+++ b/chrome/browser/net/gaia/gaia_oauth_fetcher.cc
@@ -23,6 +23,7 @@
#include "chrome/common/net/gaia/oauth_request_signer.h"
#include "content/public/browser/notification_details.h"
#include "content/public/browser/notification_source.h"
+#include "content/public/common/content_url_request_user_data.h"
#include "content/public/common/url_fetcher.h"
#include "grit/chromium_strings.h"
#include "net/base/load_flags.h"
@@ -70,6 +71,9 @@ content::URLFetcher* GaiaOAuthFetcher::CreateGaiaFetcher(
empty_body ? content::URLFetcher::GET : content::URLFetcher::POST,
delegate);
result->SetRequestContext(getter);
+ // TODO(jochen): Do cookie audit.
+ result->SetContentURLRequestUserData(
+ new content::ContentURLRequestUserData());
// The Gaia/OAuth token exchange requests do not require any cookie-based
// identification as part of requests. We suppress sending any cookies to

Powered by Google App Engine
This is Rietveld 408576698