| Index: content/browser/download/download_item_impl.cc
|
| diff --git a/content/browser/download/download_item_impl.cc b/content/browser/download/download_item_impl.cc
|
| index 4e9b2d757b49d7d819f6aea1726b7ff5af20034d..7e75e2e0d18f10b08b4f23a93af84190e94186c2 100644
|
| --- a/content/browser/download/download_item_impl.cc
|
| +++ b/content/browser/download/download_item_impl.cc
|
| @@ -320,8 +320,12 @@ void DownloadItemImpl::UpdateObservers() {
|
|
|
| void DownloadItemImpl::DangerousDownloadValidated() {
|
| DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
|
| + DCHECK_EQ(IN_PROGRESS, GetState());
|
| DCHECK_EQ(DANGEROUS, GetSafetyState());
|
|
|
| + if (GetState() != IN_PROGRESS)
|
| + return;
|
| +
|
| UMA_HISTOGRAM_ENUMERATION("Download.DangerousDownloadValidated",
|
| GetDangerType(),
|
| content::DOWNLOAD_DANGER_TYPE_MAX);
|
|
|