Index: chrome/browser/profiles/profile_downloader.cc |
diff --git a/chrome/browser/profiles/profile_downloader.cc b/chrome/browser/profiles/profile_downloader.cc |
index 8c92f8ccb8031e79cfe1f760db5a0e5e0bce227c..d4726f21839ea5d73d36dbcf92cb8a354ff0c079 100644 |
--- a/chrome/browser/profiles/profile_downloader.cc |
+++ b/chrome/browser/profiles/profile_downloader.cc |
@@ -28,6 +28,7 @@ |
#include "content/public/browser/notification_types.h" |
#include "content/public/common/url_fetcher.h" |
#include "googleurl/src/gurl.h" |
+#include "net/base/load_flags.h" |
#include "skia/ext/image_operations.h" |
using content::BrowserThread; |
@@ -244,6 +245,7 @@ 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); |
if (!auth_token_.empty()) { |
user_entry_fetcher_->SetExtraRequestHeaders( |
base::StringPrintf(kAuthorizationHeader, auth_token_.c_str())); |
@@ -305,6 +307,7 @@ 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); |
if (!auth_token_.empty()) { |
profile_image_fetcher_->SetExtraRequestHeaders( |
base::StringPrintf(kAuthorizationHeader, auth_token_.c_str())); |