Skip to content

Commit

Permalink
Disable sending cookies from ProfileDownloader::StartFetchingImage()
Browse files Browse the repository at this point in the history
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
  • Loading branch information
sail@chromium.org committed Mar 20, 2012
1 parent b21131b commit 8ce2678
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions chrome/browser/profiles/profile_downloader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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()));
Expand Down Expand Up @@ -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()));
Expand Down

0 comments on commit 8ce2678

Please sign in to comment.