Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2978)

Unified Diff: chrome/browser/profiles/profile_avatar_downloader.cc

Issue 263563003: Add referrer & load flag support to BitmapFetcher class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use new start function only Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/profiles/profile_avatar_downloader.cc
diff --git a/chrome/browser/profiles/profile_avatar_downloader.cc b/chrome/browser/profiles/profile_avatar_downloader.cc
index 74475bccd8066c97f594177a3aa194e27105b657..4f9c5c968b0e033b7c991250bfedbec1eefae390 100644
--- a/chrome/browser/profiles/profile_avatar_downloader.cc
+++ b/chrome/browser/profiles/profile_avatar_downloader.cc
@@ -9,6 +9,7 @@
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_avatar_icon_util.h"
#include "chrome/browser/profiles/profile_info_cache.h"
+#include "net/base/load_flags.h"
namespace {
const char kHighResAvatarDownloadUrlPrefix[] =
@@ -33,7 +34,11 @@ void ProfileAvatarDownloader::Start() {
net::URLRequestContextGetter* request_context =
g_browser_process->system_request_context();
if (request_context)
- fetcher_->Start(request_context);
+ fetcher_->Start(
+ request_context,
+ "",
+ net::URLRequest::CLEAR_REFERRER_ON_TRANSITION_FROM_SECURE_TO_INSECURE,
+ net::LOAD_NORMAL);
}
// BitmapFetcherDelegate overrides.

Powered by Google App Engine
This is Rietveld 408576698