| Index: chrome/browser/download/download_danger_prompt.cc | 
| diff --git a/chrome/browser/download/download_danger_prompt.cc b/chrome/browser/download/download_danger_prompt.cc | 
| index 2e3e9c7fd128782621485601031dcfa55cc2b2e3..bdd75cc4d58c2eb7c6cc8cabcdf19b80154d5bef 100644 | 
| --- a/chrome/browser/download/download_danger_prompt.cc | 
| +++ b/chrome/browser/download/download_danger_prompt.cc | 
| @@ -94,9 +94,9 @@ void DownloadDangerPromptImpl::InvokeActionForTesting(Action action) { | 
| void DownloadDangerPromptImpl::OnDownloadUpdated( | 
| content::DownloadItem* download) { | 
| // If the download is nolonger dangerous (accepted externally) or the download | 
| -  // doesn't exist anymore, the download danger prompt is no longer necessary. | 
| -  if ((download->GetState() != content::DownloadItem::IN_PROGRESS) | 
| -      || !download->IsDangerous()) | 
| +  // is in a terminal state, then the download danger prompt is no longer | 
| +  // necessary. | 
| +  if (!download->IsDangerous() || download->IsDone()) | 
| Cancel(); | 
| } | 
|  | 
|  |