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..60e903e39f259c38b4e64358f8c533867347022a 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.bound_net_log.source()))); |
+ |
+ info.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: |