Chromium Code Reviews| 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..c7b64fc0f354eaa5990ccb1a4bf87b491112bf85 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,29 @@ 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("...", R"( |
|
Nicolas Zea
2017/03/03 22:39:56
same as the http bridge
Ramin Halavati
2017/03/06 06:55:45
Done.
|
| + 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: ... |
| + } |
| + } |
| + policy_exception_justification: "..." |
| + })"); |
| + 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()); |