summaryrefslogtreecommitdiffstats
path: root/content/browser/download/download_item_impl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'content/browser/download/download_item_impl.cc')
-rw-r--r--content/browser/download/download_item_impl.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/content/browser/download/download_item_impl.cc b/content/browser/download/download_item_impl.cc
index cdcd10e..03b1a0e 100644
--- a/content/browser/download/download_item_impl.cc
+++ b/content/browser/download/download_item_impl.cc
@@ -242,6 +242,19 @@ DownloadItemImpl::DownloadItemImpl(
delegate_->Attach();
Init(true /* actively downloading */,
download_net_logs::SRC_NEW_DOWNLOAD);
+
+ // Link the event sources.
+ bound_net_log_.AddEvent(
+ net::NetLog::TYPE_DOWNLOAD_URL_REQUEST,
+ make_scoped_refptr(new net::NetLogSourceParameter(
+ "source_dependency",
+ info.request_bound_net_log.source())));
+
+ info.request_bound_net_log.AddEvent(
+ net::NetLog::TYPE_DOWNLOAD_STARTED,
+ make_scoped_refptr(new net::NetLogSourceParameter(
+ "source_dependency",
+ bound_net_log_.source())));
}
// Constructing for the "Save Page As..." feature: