summaryrefslogtreecommitdiffstats
path: root/chrome/browser
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser')
-rw-r--r--chrome/browser/download/download_manager.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/download/download_manager.cc b/chrome/browser/download/download_manager.cc
index 8e10b86..ed4ebb0 100644
--- a/chrome/browser/download/download_manager.cc
+++ b/chrome/browser/download/download_manager.cc
@@ -975,6 +975,12 @@ int DownloadManager::RemoveDownloadsBetween(const Time remove_begin,
state == DownloadItem::CANCELLED)) {
// Remove from the map and move to the next in the list.
it = downloads_.erase(it);
+
+ // Also remove it from any completed dangerous downloads.
+ DownloadMap::iterator dit = dangerous_finished_.find(download->id());
+ if (dit != dangerous_finished_.end())
+ dangerous_finished_.erase(dit);
+
delete download;
++num_deleted;