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

Unified Diff: components/image_fetcher/ios/ios_image_data_fetcher_wrapper.mm

Issue 2794343002: Network traffic annotation added to image_data_fetcher. (Closed)
Patch Set: Annotation updated. 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/ios/ios_image_data_fetcher_wrapper.mm
diff --git a/components/image_fetcher/ios/ios_image_data_fetcher_wrapper.mm b/components/image_fetcher/ios/ios_image_data_fetcher_wrapper.mm
index 2d20ff0b92ae40023a3a6edd7173edefeec0021a..973abb755d6504d782cf94fd00efde5b8d1c9340 100644
--- a/components/image_fetcher/ios/ios_image_data_fetcher_wrapper.mm
+++ b/components/image_fetcher/ios/ios_image_data_fetcher_wrapper.mm
@@ -11,6 +11,7 @@
#import "components/image_fetcher/ios/webp_decoder.h"
#include "net/http/http_response_headers.h"
#include "net/http/http_status_code.h"
+#include "net/traffic_annotation/network_traffic_annotation.h"
#include "net/url_request/url_fetcher.h"
#include "url/url_constants.h"
@@ -36,7 +37,8 @@ void IOSImageDataFetcherWrapper::FetchImageDataWebpDecoded(
const GURL& image_url,
IOSImageDataFetcherCallback callback) {
image_data_fetcher_.FetchImageData(image_url,
- CallbackForImageDataFetcher(callback));
+ CallbackForImageDataFetcher(callback),
+ NO_TRAFFIC_ANNOTATION_YET);
}
void IOSImageDataFetcherWrapper::FetchImageDataWebpDecoded(
@@ -46,9 +48,9 @@ void IOSImageDataFetcherWrapper::FetchImageDataWebpDecoded(
net::URLRequest::ReferrerPolicy referrer_policy) {
DCHECK(callback);
- image_data_fetcher_.FetchImageData(image_url,
- CallbackForImageDataFetcher(callback),
- referrer, referrer_policy);
+ image_data_fetcher_.FetchImageData(
+ image_url, CallbackForImageDataFetcher(callback), referrer,
+ referrer_policy, NO_TRAFFIC_ANNOTATION_YET);
}
void IOSImageDataFetcherWrapper::SetDataUseServiceName(

Powered by Google App Engine
This is Rietveld 408576698