| Index: components/update_client/utils.cc
|
| diff --git a/components/update_client/utils.cc b/components/update_client/utils.cc
|
| index 42a2235082aced11055372f92d91039da181e9c4..cb30a0c5731e1a2a4f8d9fc823baf368cded510e 100644
|
| --- a/components/update_client/utils.cc
|
| +++ b/components/update_client/utils.cc
|
| @@ -35,6 +35,7 @@
|
| #include "crypto/secure_hash.h"
|
| #include "crypto/sha2.h"
|
| #include "net/base/load_flags.h"
|
| +#include "net/traffic_annotation/network_traffic_annotation.h"
|
| #include "net/url_request/url_fetcher.h"
|
| #include "net/url_request/url_request_context_getter.h"
|
| #include "net/url_request/url_request_status.h"
|
| @@ -188,8 +189,31 @@ std::unique_ptr<net::URLFetcher> SendProtocolRequest(
|
| const std::string& protocol_request,
|
| net::URLFetcherDelegate* url_fetcher_delegate,
|
| net::URLRequestContextGetter* url_request_context_getter) {
|
| + net::NetworkTrafficAnnotationTag traffic_annotation =
|
| + net::DefineNetworkTrafficAnnotation("component_updater_utils", R"(
|
| + semantics {
|
| + sender: "Component Updater"
|
| + description:
|
| + "The component updater in Chrome is responsible for updating code "
|
| + "and data modules such as Flash, CrlSet, Origin Trials, etc. These "
|
| + "modules are updated on cycles independent of the Chrome release "
|
| + "tracks. It runs in the browser process and communicates with a "
|
| + "set of servers using the Omaha protocol to find the latest "
|
| + "versions of components, download them, and register them with the "
|
| + "rest of Chrome."
|
| + trigger: "Manual or automatic software updates."
|
| + data:
|
| + "Various OS and Chrome parameters such as version, bitness, "
|
| + "release tracks, etc."
|
| + destination: GOOGLE_OWNED_SERVICE
|
| + }
|
| + policy {
|
| + cookies_allowed: false
|
| + setting: "This feature cannot be disabled."
|
| + policy_exception_justification: "Not implemented."
|
| + })");
|
| std::unique_ptr<net::URLFetcher> url_fetcher = net::URLFetcher::Create(
|
| - 0, url, net::URLFetcher::POST, url_fetcher_delegate);
|
| + 0, url, net::URLFetcher::POST, url_fetcher_delegate, traffic_annotation);
|
| if (!url_fetcher.get())
|
| return url_fetcher;
|
|
|
|
|