Index: chrome/browser/autocomplete/chrome_autocomplete_provider_client.cc |
diff --git a/chrome/browser/autocomplete/chrome_autocomplete_provider_client.cc b/chrome/browser/autocomplete/chrome_autocomplete_provider_client.cc |
index 12d6b2f1c50ade6f3d7ab02dd611ca7995ebf8eb..6e92cac8697a1f0df02ad66eaddd3add0a492de2 100644 |
--- a/chrome/browser/autocomplete/chrome_autocomplete_provider_client.cc |
+++ b/chrome/browser/autocomplete/chrome_autocomplete_provider_client.cc |
@@ -34,6 +34,7 @@ |
#include "components/sync/driver/sync_service_utils.h" |
#include "content/public/browser/notification_service.h" |
#include "extensions/features/features.h" |
+#include "net/traffic_annotation/network_traffic_annotation.h" |
#if BUILDFLAG(ENABLE_EXTENSIONS) |
#include "chrome/browser/autocomplete/keyword_extensions_delegate_impl.h" |
@@ -248,7 +249,27 @@ void ChromeAutocompleteProviderClient::PrefetchImage(const GURL& url) { |
BitmapFetcherService* image_service = |
BitmapFetcherServiceFactory::GetForBrowserContext(profile_); |
DCHECK(image_service); |
- image_service->Prefetch(url); |
+ net::NetworkTrafficAnnotationTag traffic_annotation = |
+ net::DefineNetworkTrafficAnnotation("", R"( |
+ semantics { |
+ sender: "" |
+ description: "" |
+ trigger: "" |
+ data: "" |
+ destination: WEBSITE/GOOGLE_OWNED_SERVICE/OTHER |
+ } |
+ policy { |
+ cookies_allowed: false/true |
+ cookies_store: "" |
+ setting: "" |
+ policy { |
+ [POLICY_NAME] { |
+ policy_options {mode: MANDATORY/RECOMMENDED/UNSET} |
+ value: ... |
+ } |
+ } |
+ })"); |
+ image_service->Prefetch(url, traffic_annotation); |
} |
void ChromeAutocompleteProviderClient::OnAutocompleteControllerResultReady( |