Index: content/browser/download/download_item_impl.cc |
diff --git a/content/browser/download/download_item_impl.cc b/content/browser/download/download_item_impl.cc |
index cdcd10ec26126b42c7addd6f4a7a3685e394a24b..03b1a0e29ed13bd1af96e41e27530db5259208bd 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: |