From 7608a0489ca27037d8392f2d0cc6316991f40196 Mon Sep 17 00:00:00 2001 From: Aleksei Kuzmin Date: Mon, 21 Aug 2017 12:20:37 +0300 Subject: [PATCH] Network Traffic Annotation added to DownloadURLParams. https://chromium-review.googlesource.com/c/530307 --- atom/browser/api/atom_api_web_contents.cc | 2 +- atom/browser/atom_resource_dispatcher_host_delegate.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/atom/browser/api/atom_api_web_contents.cc b/atom/browser/api/atom_api_web_contents.cc index 14d13877f66f..8e29d52ec537 100644 --- a/atom/browser/api/atom_api_web_contents.cc +++ b/atom/browser/api/atom_api_web_contents.cc @@ -1085,7 +1085,7 @@ void WebContents::DownloadURL(const GURL& url) { download_manager->DownloadUrl( content::DownloadUrlParameters::CreateForWebContentsMainFrame( - web_contents(), url)); + web_contents(), url, NO_TRAFFIC_ANNOTATION_YET)); } GURL WebContents::GetURL() const { diff --git a/atom/browser/atom_resource_dispatcher_host_delegate.cc b/atom/browser/atom_resource_dispatcher_host_delegate.cc index 653d81ee463c..7cb8f718112c 100644 --- a/atom/browser/atom_resource_dispatcher_host_delegate.cc +++ b/atom/browser/atom_resource_dispatcher_host_delegate.cc @@ -81,7 +81,7 @@ void OnPdfResourceIntercepted( download_manager->DownloadUrl( content::DownloadUrlParameters::CreateForWebContentsMainFrame( - web_contents, original_url)); + web_contents, original_url, NO_TRAFFIC_ANNOTATION_YET)); return; }