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

Unified Diff: components/image_fetcher/core/image_fetcher_impl.cc

Issue 2794343002: Network traffic annotation added to image_data_fetcher. (Closed)
Patch Set: Annotation moved to callers. Created 3 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: components/image_fetcher/core/image_fetcher_impl.cc
diff --git a/components/image_fetcher/core/image_fetcher_impl.cc b/components/image_fetcher/core/image_fetcher_impl.cc
index 567928c9a6df05e2daadc47bbb5870fc235aa8f4..1e047e6304d113d9056781d8dd297fb97a144be5 100644
--- a/components/image_fetcher/core/image_fetcher_impl.cc
+++ b/components/image_fetcher/core/image_fetcher_impl.cc
@@ -14,11 +14,13 @@ namespace image_fetcher {
ImageFetcherImpl::ImageFetcherImpl(
std::unique_ptr<ImageDecoder> image_decoder,
- net::URLRequestContextGetter* url_request_context)
+ net::URLRequestContextGetter* url_request_context,
+ const net::NetworkTrafficAnnotationTag& traffic_annotation)
: delegate_(nullptr),
url_request_context_(url_request_context),
image_decoder_(std::move(image_decoder)),
- image_data_fetcher_(new ImageDataFetcher(url_request_context_.get())) {}
+ image_data_fetcher_(new ImageDataFetcher(url_request_context_.get(),
+ traffic_annotation)) {}
ImageFetcherImpl::~ImageFetcherImpl() {}

Powered by Google App Engine
This is Rietveld 408576698