| Index: components/sync/engine_impl/attachments/attachment_downloader_impl.cc
|
| diff --git a/components/sync/engine_impl/attachments/attachment_downloader_impl.cc b/components/sync/engine_impl/attachments/attachment_downloader_impl.cc
|
| index 73be92992e868792874b43771b3fbb23d54e179d..056bd7982f31e9bb20d969e1f2cf3cef95174b9e 100644
|
| --- a/components/sync/engine_impl/attachments/attachment_downloader_impl.cc
|
| +++ b/components/sync/engine_impl/attachments/attachment_downloader_impl.cc
|
| @@ -25,6 +25,7 @@
|
| #include "net/http/http_response_headers.h"
|
| #include "net/http/http_status_code.h"
|
| #include "net/http/http_util.h"
|
| +#include "net/traffic_annotation/network_traffic_annotation.h"
|
| #include "net/url_request/url_fetcher.h"
|
| #include "net/url_request/url_request_status.h"
|
|
|
| @@ -214,8 +215,33 @@ void AttachmentDownloaderImpl::OnURLFetchComplete(
|
| std::unique_ptr<net::URLFetcher> AttachmentDownloaderImpl::CreateFetcher(
|
| const AttachmentUrl& url,
|
| const std::string& access_token) {
|
| - std::unique_ptr<net::URLFetcher> url_fetcher =
|
| - net::URLFetcher::Create(GURL(url), net::URLFetcher::GET, this);
|
| + net::NetworkTrafficAnnotationTag traffic_annotation =
|
| + net::DefineNetworkTrafficAnnotation("attachment_downloader", R"(
|
| + semantics {
|
| + sender: "Chrome Sync"
|
| + description:
|
| + "Chrome Sync synchronizes profile data between Chromium clients "
|
| + "and Google for a given user account."
|
| + trigger:
|
| + "User makes a change to syncable profile data after enabling sync "
|
| + "on the device."
|
| + data:
|
| + "The device and user identifiers, along with any profile data that "
|
| + "is changing."
|
| + destination: GOOGLE_OWNED_SERVICE
|
| + }
|
| + policy {
|
| + cookies_allowed: false
|
| + setting: "This feature cannot be disabled by settings."
|
| + policy {
|
| + SyncDisabled {
|
| + policy_options {mode: MANDATORY}
|
| + SyncDisabled: true
|
| + }
|
| + }
|
| + })");
|
| + std::unique_ptr<net::URLFetcher> url_fetcher = net::URLFetcher::Create(
|
| + GURL(url), net::URLFetcher::GET, this, traffic_annotation);
|
| AttachmentUploaderImpl::ConfigureURLFetcherCommon(
|
| url_fetcher.get(), access_token, raw_store_birthday_, model_type_,
|
| url_request_context_getter_.get());
|
|
|