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 47fb18dbf489116b7da0142541af3bc7985451bf..ed033099fe6450321eb9a48b59cd137b01c32617 100644 |
--- a/chrome/browser/ui/webui/downloads_dom_handler.cc |
+++ b/chrome/browser/ui/webui/downloads_dom_handler.cc |
@@ -510,7 +510,7 @@ void DownloadsDOMHandler::DangerPromptAccepted(int download_id) { |
item = main_notifier_.GetManager()->GetDownload(download_id); |
if (!item && original_notifier_.get() && original_notifier_->GetManager()) |
item = original_notifier_->GetManager()->GetDownload(download_id); |
- if (!item || (item->GetState() != content::DownloadItem::IN_PROGRESS)) |
+ if (!item || item->IsDone()) |
return; |
CountDownloadsDOMEvents(DOWNLOADS_DOM_EVENT_SAVE_DANGEROUS); |
item->ValidateDangerousDownload(); |