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

Unified Diff: chrome/common/net/gaia/oauth2_revocation_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/common/net/gaia/oauth2_revocation_fetcher.cc
diff --git a/chrome/common/net/gaia/oauth2_revocation_fetcher.cc b/chrome/common/net/gaia/oauth2_revocation_fetcher.cc
index 207734b18a250e038056d1a0af28bcde5beb0e6a..e89f91d9096d1acc111090e251e5c74508f90e24 100644
--- a/chrome/common/net/gaia/oauth2_revocation_fetcher.cc
+++ b/chrome/common/net/gaia/oauth2_revocation_fetcher.cc
@@ -14,6 +14,7 @@
#include "base/values.h"
#include "chrome/common/net/gaia/gaia_urls.h"
#include "chrome/common/net/gaia/google_service_auth_error.h"
+#include "content/public/common/content_url_request_user_data.h"
#include "net/base/escape.h"
#include "net/base/load_flags.h"
#include "net/http/http_status_code.h"
@@ -59,6 +60,9 @@ static URLFetcher* CreateFetcher(URLRequestContextGetter* getter,
delegate);
result->SetRequestContext(getter);
+ // No user data, as the request will be cookie-less.
+ result->SetContentURLRequestUserData(
+ new content::ContentURLRequestUserData());
result->SetLoadFlags(net::LOAD_DO_NOT_SEND_COOKIES |
net::LOAD_DO_NOT_SAVE_COOKIES);
if (!header.empty())

Powered by Google App Engine
This is Rietveld 408576698