Index: chrome/browser/ui/webui/downloads_dom_handler.cc |
diff --git a/chrome/browser/ui/webui/downloads_dom_handler.cc b/chrome/browser/ui/webui/downloads_dom_handler.cc |
index 5ab35f113d923063dcddd69aa4d7f34c611bbe1d..0a990713c77d06cff304f3c906e164ece738101b 100644 |
--- a/chrome/browser/ui/webui/downloads_dom_handler.cc |
+++ b/chrome/browser/ui/webui/downloads_dom_handler.cc |
@@ -543,8 +543,10 @@ void DownloadsDOMHandler::RemoveDownloads( |
const std::vector<content::DownloadItem*>& to_remove) { |
std::set<uint32> ids; |
for (auto* download : to_remove) { |
- if (IsRemoved(*download)) |
+ if (IsRemoved(*download) || |
+ download->GetState() == content::DownloadItem::IN_PROGRESS) { |
continue; |
+ } |
DownloadsDOMHandlerData::Create(download)->set_is_removed(true); |
ids.insert(download->GetId()); |