Chromium Code Reviews| Index: chrome/browser/plugins/plugins_resource_service.cc |
| diff --git a/chrome/browser/plugins/plugins_resource_service.cc b/chrome/browser/plugins/plugins_resource_service.cc |
| index 2910e395cab43859900e34798df7ba39973a1309..eb3c45fbdb5ff2117a6b1b1adadaa3197368704c 100644 |
| --- a/chrome/browser/plugins/plugins_resource_service.cc |
| +++ b/chrome/browser/plugins/plugins_resource_service.cc |
| @@ -17,6 +17,33 @@ |
| #include "url/gurl.h" |
| namespace { |
| +constexpr net::NetworkTrafficAnnotationTag kTrafficAnnotation = |
| + net::DefineNetworkTrafficAnnotation("plugins_resource_service", R"( |
| + semantics { |
| + sender: "Plugins Resource Service" |
| + description: |
| + "Fetches updates to the list of plugins known to Chromium. For a " |
| + "given plugin, this list contains the minimum version not " |
| + "containing known security vulnerabilities, and can be used to " |
| + "inform the user that their plugins need to be updated." |
| + trigger: "Triggered at regular intervals (once per day)." |
| + data: "None" |
| + destination: GOOGLE_OWNED_SERVICE |
| + } |
| + policy { |
| + cookies_allowed: false |
| + setting: "This feature cannot be disabled in settings." |
| + policy { |
| + AllowOutdatedPlugins { |
| + policy_options {mode: MANDATORY} |
| + AllowOutdatedPlugins: true |
|
Bernhard Bauer
2017/03/14 12:20:17
This policy does not disable the network request t
Ramin Halavati
2017/03/14 12:25:46
Sorry, thank you.
|
| + } |
| + } |
| + })"); |
| + |
| +} // namespace |
| + |
| +namespace { |
| // Delay on first fetch so we don't interfere with startup. |
| const int kStartResourceFetchDelayMs = 60 * 1000; |
| @@ -54,7 +81,8 @@ PluginsResourceService::PluginsResourceService(PrefService* local_state) |
| kCacheUpdateDelayMs, |
| g_browser_process->system_request_context(), |
| switches::kDisableBackgroundNetworking, |
| - base::Bind(safe_json::SafeJsonParser::Parse)) {} |
| + base::Bind(safe_json::SafeJsonParser::Parse), |
| + kTrafficAnnotation) {} |
| void PluginsResourceService::Init() { |
| const base::DictionaryValue* metadata = |