Index: chrome/common/net/gaia/gaia_auth_fetcher.cc |
diff --git a/chrome/common/net/gaia/gaia_auth_fetcher.cc b/chrome/common/net/gaia/gaia_auth_fetcher.cc |
index d70ff783df8a97aade008292657a14c4e574b028..acda6a5e6e12516870dd1c0ed0e18e15fff48a17 100644 |
--- a/chrome/common/net/gaia/gaia_auth_fetcher.cc |
+++ b/chrome/common/net/gaia/gaia_auth_fetcher.cc |
@@ -18,6 +18,7 @@ |
#include "chrome/common/net/gaia/gaia_constants.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 "content/public/common/url_fetcher.h" |
#include "net/base/escape.h" |
#include "net/base/load_flags.h" |
@@ -189,6 +190,9 @@ content::URLFetcher* GaiaAuthFetcher::CreateGaiaFetcher( |
body == "" ? content::URLFetcher::GET : content::URLFetcher::POST, |
delegate); |
to_return->SetRequestContext(getter); |
+ // TODO(jochen): Do cookie audit. |
+ to_return->SetContentURLRequestUserData( |
+ new content::ContentURLRequestUserData()); |
to_return->SetUploadData("application/x-www-form-urlencoded", body); |
// The Gaia token exchange requests do not require any cookie-based |