summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorsail@chromium.org <sail@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-20 21:13:53 +0000
committersail@chromium.org <sail@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-20 21:13:53 +0000
commit8ce26780220a53ad1b7f4ecf8c0c01730a33f917 (patch)
treeb6005e40975c2ed3fbb08c8c8bcb38ea0ea486aa /chrome
parentb21131bb1a20f40db3d98d31d39530e1712e401e (diff)
downloadchromium_src-8ce26780220a53ad1b7f4ecf8c0c01730a33f917.zip
chromium_src-8ce26780220a53ad1b7f4ecf8c0c01730a33f917.tar.gz
chromium_src-8ce26780220a53ad1b7f4ecf8c0c01730a33f917.tar.bz2
Disable sending cookies from ProfileDownloader::StartFetchingImage()
I followed the steps below to verify that the feature still works. BUG=118954 TEST=Enabled GAIA profile pictures in GAIAInfoUpdateService::ShouldUseGAIAProfileInfo(). Ran Chrome, signed in and verified that the profile pictuer was my GAIA picture. Review URL: http://codereview.chromium.org/9726019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127783 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/profiles/profile_downloader.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/chrome/browser/profiles/profile_downloader.cc b/chrome/browser/profiles/profile_downloader.cc
index 6055f88..40a0a42 100644
--- a/chrome/browser/profiles/profile_downloader.cc
+++ b/chrome/browser/profiles/profile_downloader.cc
@@ -248,7 +248,8 @@ void ProfileDownloader::StartFetchingImage() {
GURL(kUserEntryURL), content::URLFetcher::GET, this));
user_entry_fetcher_->SetRequestContext(
delegate_->GetBrowserProfile()->GetRequestContext());
- user_entry_fetcher_->SetLoadFlags(net::LOAD_DO_NOT_SAVE_COOKIES);
+ user_entry_fetcher_->SetLoadFlags(net::LOAD_DO_NOT_SEND_COOKIES |
+ net::LOAD_DO_NOT_SAVE_COOKIES);
if (!auth_token_.empty()) {
user_entry_fetcher_->SetExtraRequestHeaders(
base::StringPrintf(kAuthorizationHeader, auth_token_.c_str()));
@@ -311,7 +312,8 @@ void ProfileDownloader::OnURLFetchComplete(const content::URLFetcher* source) {
GURL(image_url), content::URLFetcher::GET, this));
profile_image_fetcher_->SetRequestContext(
delegate_->GetBrowserProfile()->GetRequestContext());
- profile_image_fetcher_->SetLoadFlags(net::LOAD_DO_NOT_SAVE_COOKIES);
+ profile_image_fetcher_->SetLoadFlags(net::LOAD_DO_NOT_SEND_COOKIES |
+ net::LOAD_DO_NOT_SAVE_COOKIES);
if (!auth_token_.empty()) {
profile_image_fetcher_->SetExtraRequestHeaders(
base::StringPrintf(kAuthorizationHeader, auth_token_.c_str()));