Chromium Code Reviews| Index: components/update_client/utils.cc |
| diff --git a/components/update_client/utils.cc b/components/update_client/utils.cc |
| index 96e15a97c98a888990bd3c94f8ea93db468e8829..4c1cf2069f5de524d14973c0d487b8fba7e7f3bc 100644 |
| --- a/components/update_client/utils.cc |
| +++ b/components/update_client/utils.cc |
| @@ -37,6 +37,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" |
| @@ -192,8 +193,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." |
|
msramek
2017/05/18 09:45:46
Ditto here.
Ramin Halavati
2017/05/18 10:44:01
Done.
|
| + })"); |
| 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; |