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

Unified Diff: chrome/browser/image_holder.cc

Issue 263563003: Add referrer & load flag support to BitmapFetcher class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: include another missing header 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/image_holder.cc
diff --git a/chrome/browser/image_holder.cc b/chrome/browser/image_holder.cc
index 4af1641a259f17b83e3d780581f4aec039afd490..960b057e75bd86bf67fc24df0af9125c45ac2303 100644
--- a/chrome/browser/image_holder.cc
+++ b/chrome/browser/image_holder.cc
@@ -8,6 +8,7 @@
#include "chrome/browser/image_holder.h"
#include "chrome/browser/profiles/profile.h"
+#include "net/base/load_flags.h"
namespace chrome {
@@ -67,7 +68,11 @@ void ImageHolder::StartFetch() {
// Now that we have queued them all, start the fetching.
ScopedVector<chrome::BitmapFetcher>::iterator iter;
for (iter = fetchers_.begin(); iter != fetchers_.end(); ++iter) {
- (*iter)->Start(profile_->GetRequestContext());
+ (*iter)->Start(
+ profile_->GetRequestContext(),
+ std::string(),
+ net::URLRequest::CLEAR_REFERRER_ON_TRANSITION_FROM_SECURE_TO_INSECURE,
+ net::LOAD_NORMAL);
}
}
« no previous file with comments | « chrome/browser/bitmap_fetcher_browsertest.cc ('k') | chrome/browser/notifications/sync_notifier/synced_notification.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698