| Index: content/browser/download/save_file_manager.cc
|
| diff --git a/content/browser/download/save_file_manager.cc b/content/browser/download/save_file_manager.cc
|
| index 256ef2811375b0a4eaffbd3518fda580fdf0e5b7..75182a58911f49c4e26245e580c7b7858833760f 100644
|
| --- a/content/browser/download/save_file_manager.cc
|
| +++ b/content/browser/download/save_file_manager.cc
|
| @@ -25,6 +25,7 @@
|
| #include "content/public/common/previews_state.h"
|
| #include "net/base/io_buffer.h"
|
| #include "net/base/load_flags.h"
|
| +#include "net/traffic_annotation/network_traffic_annotation.h"
|
| #include "net/url_request/url_request.h"
|
| #include "net/url_request/url_request_context.h"
|
| #include "net/url_request/url_request_job_factory.h"
|
| @@ -307,8 +308,29 @@ void SaveFileManager::OnSaveURL(const GURL& url,
|
| return;
|
| }
|
|
|
| - std::unique_ptr<net::URLRequest> request(
|
| - request_context->CreateRequest(url, net::DEFAULT_PRIORITY, NULL));
|
| + net::NetworkTrafficAnnotationTag traffic_annotation =
|
| + net::DefineNetworkTrafficAnnotation("...", R"(
|
| + semantics {
|
| + sender: "..."
|
| + description: "..."
|
| + trigger: "..."
|
| + data: "..."
|
| + destination: WEBSITE/GOOGLE_OWNED_SERVICE/OTHER/LOCAL
|
| + }
|
| + policy {
|
| + cookies_allowed: false/true
|
| + cookies_store: "..."
|
| + setting: "..."
|
| + chrome_policy {
|
| + [POLICY_NAME] {
|
| + policy_options {mode: MANDATORY/RECOMMENDED/UNSET}
|
| + [POLICY_NAME]: ... //(value to disable it)
|
| + }
|
| + }
|
| + policy_exception_justification: "..."
|
| + })");
|
| + std::unique_ptr<net::URLRequest> request(request_context->CreateRequest(
|
| + url, net::DEFAULT_PRIORITY, NULL, traffic_annotation));
|
| request->set_method("GET");
|
|
|
| // The URLRequest needs to be initialized with the referrer and other
|
|
|