Index: chrome/browser/profiles/profile_avatar_downloader.cc |
diff --git a/chrome/browser/profiles/profile_avatar_downloader.cc b/chrome/browser/profiles/profile_avatar_downloader.cc |
index 6bfb7a882494c0cb9e2e0fdaae5ec4176017af7d..e7bd9c2e7e595d34136315d0783ab9c3ce55c82d 100644 |
--- a/chrome/browser/profiles/profile_avatar_downloader.cc |
+++ b/chrome/browser/profiles/profile_avatar_downloader.cc |
@@ -12,6 +12,7 @@ |
#include "chrome/browser/profiles/profile.h" |
#include "chrome/browser/profiles/profile_avatar_icon_util.h" |
#include "net/base/load_flags.h" |
+#include "net/traffic_annotation/network_traffic_annotation.h" |
#include "ui/gfx/image/image.h" |
namespace { |
@@ -27,7 +28,27 @@ ProfileAvatarDownloader::ProfileAvatarDownloader( |
DCHECK(!callback_.is_null()); |
GURL url(std::string(kHighResAvatarDownloadUrlPrefix) + |
profiles::GetDefaultAvatarIconFileNameAtIndex(icon_index)); |
- fetcher_.reset(new chrome::BitmapFetcher(url, this)); |
+ net::NetworkTrafficAnnotationTag traffic_annotation = |
+ net::DefineNetworkTrafficAnnotation("", R"( |
+ semantics { |
+ sender: "" |
Mike Lerman
2017/02/09 13:40:16
SEMANTICS:
sender: profiles
description: The Goog
Ramin Halavati
2017/02/09 14:22:51
Done.
|
+ description: "" |
+ trigger: "" |
+ data: "" |
+ destination: WEBSITE/GOOGLE_OWNED_SERVICE/OTHER |
+ } |
+ policy { |
+ cookies_allowed: false/true |
+ cookies_store_exceptions: "" |
+ setting: "" |
+ policy { |
+ [POLICY_NAME] { |
+ policy_options {mode: MANDATORY/RECOMMENDED/UNSET} |
+ value: ... |
+ } |
+ } |
+ })"); |
+ fetcher_.reset(new chrome::BitmapFetcher(url, this, traffic_annotation)); |
} |
ProfileAvatarDownloader::~ProfileAvatarDownloader() { |