Index: content/browser/download/download_manager_impl.cc |
diff --git a/content/browser/download/download_manager_impl.cc b/content/browser/download/download_manager_impl.cc |
index 5dc5aa17b59f3220bc75a47090b8335bd226c7f9..1c2c5f3f14acf074ef0459007fc0afcba9594ab1 100644 |
--- a/content/browser/download/download_manager_impl.cc |
+++ b/content/browser/download/download_manager_impl.cc |
@@ -344,19 +344,7 @@ void DownloadManagerImpl::Shutdown() { |
// associative containers such as sets. |
it++; |
- if (download->IsDangerous() && download->IsPartialDownload()) { |
- // The user hasn't accepted it, so we need to remove it |
- // from the disk. This may or may not result in it being |
- // removed from the DownloadManager queues and deleted |
- // (specifically, DownloadManager::DownloadRemoved only |
- // removes and deletes it if it's known to the history service) |
- // so the only thing we know after calling this function is that |
- // the download was deleted if-and-only-if it was removed |
- // from all queues. |
- download->Delete(DownloadItem::DELETE_DUE_TO_BROWSER_SHUTDOWN); |
- } else if (download->IsPartialDownload()) { |
- download->Cancel(false); |
- } |
+ download->Cancel(false); |
} |
// At this point, all dangerous downloads have had their files removed |