| Index: components/sync/engine_impl/attachments/attachment_uploader_impl.cc
|
| diff --git a/components/sync/engine_impl/attachments/attachment_uploader_impl.cc b/components/sync/engine_impl/attachments/attachment_uploader_impl.cc
|
| index b0249ec76854d392e6fe081f000b959c65b78b93..e898df025836d01915647c0a92734720575934cb 100644
|
| --- a/components/sync/engine_impl/attachments/attachment_uploader_impl.cc
|
| +++ b/components/sync/engine_impl/attachments/attachment_uploader_impl.cc
|
| @@ -24,6 +24,7 @@
|
| #include "google_apis/gaia/gaia_constants.h"
|
| #include "net/base/load_flags.h"
|
| #include "net/http/http_status_code.h"
|
| +#include "net/traffic_annotation/network_traffic_annotation.h"
|
| #include "net/url_request/url_fetcher.h"
|
| #include "net/url_request/url_fetcher_delegate.h"
|
| #include "net/url_request/url_request_status.h"
|
| @@ -214,7 +215,33 @@ void AttachmentUploaderImpl::UploadState::OnGetTokenSuccess(
|
| DCHECK_EQ(access_token_request_.get(), request);
|
| access_token_request_.reset();
|
| access_token_ = access_token;
|
| - fetcher_ = net::URLFetcher::Create(upload_url_, net::URLFetcher::POST, this);
|
| + net::NetworkTrafficAnnotationTag traffic_annotation =
|
| + net::DefineNetworkTrafficAnnotation("attachment_uploader", 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
|
| + }
|
| + }
|
| + })");
|
| + fetcher_ = net::URLFetcher::Create(upload_url_, net::URLFetcher::POST, this,
|
| + traffic_annotation);
|
| ConfigureURLFetcherCommon(fetcher_.get(), access_token_, raw_store_birthday_,
|
| model_type_, url_request_context_getter_.get());
|
| data_use_measurement::DataUseUserData::AttachToFetcher(
|
|
|