Index: chrome/common/net/gaia/oauth2_access_token_fetcher.cc |
diff --git a/chrome/common/net/gaia/oauth2_access_token_fetcher.cc b/chrome/common/net/gaia/oauth2_access_token_fetcher.cc |
index 2523ba888041452d7599601957869113a07ec852..a5cdf1e112dafc4270a8852e13cf9066324d8dd0 100644 |
--- a/chrome/common/net/gaia/oauth2_access_token_fetcher.cc |
+++ b/chrome/common/net/gaia/oauth2_access_token_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" |
@@ -78,6 +79,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); |