Index: chrome/browser/bitmap_fetcher/bitmap_fetcher.cc |
diff --git a/chrome/browser/bitmap_fetcher/bitmap_fetcher.cc b/chrome/browser/bitmap_fetcher/bitmap_fetcher.cc |
index 35c5ab92b9f358ce463868ecef383b72b7931408..af9447a2dac5a17d3fc26f4ff3db528ee161bba0 100644 |
--- a/chrome/browser/bitmap_fetcher/bitmap_fetcher.cc |
+++ b/chrome/browser/bitmap_fetcher/bitmap_fetcher.cc |
@@ -11,10 +11,11 @@ |
namespace chrome { |
-BitmapFetcher::BitmapFetcher(const GURL& url, BitmapFetcherDelegate* delegate) |
- : url_(url), |
- delegate_(delegate) { |
-} |
+BitmapFetcher::BitmapFetcher( |
+ const GURL& url, |
+ BitmapFetcherDelegate* delegate, |
+ const net::NetworkTrafficAnnotationTag& traffic_annotation) |
+ : url_(url), delegate_(delegate), traffic_annotation_(traffic_annotation) {} |
BitmapFetcher::~BitmapFetcher() { |
} |
@@ -26,7 +27,8 @@ void BitmapFetcher::Init(net::URLRequestContextGetter* request_context, |
if (url_fetcher_ != NULL) |
return; |
- url_fetcher_ = net::URLFetcher::Create(url_, net::URLFetcher::GET, this); |
+ url_fetcher_ = net::URLFetcher::Create(url_, net::URLFetcher::GET, this, |
+ traffic_annotation_); |
url_fetcher_->SetRequestContext(request_context); |
url_fetcher_->SetReferrer(referrer); |
url_fetcher_->SetReferrerPolicy(referrer_policy); |