diff options
Diffstat (limited to 'chrome/browser/download')
-rw-r--r-- | chrome/browser/download/download_service.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/download/download_service.cc b/chrome/browser/download/download_service.cc index 9df332b..a33ed163 100644 --- a/chrome/browser/download/download_service.cc +++ b/chrome/browser/download/download_service.cc @@ -128,7 +128,8 @@ void DownloadService::CancelAllDownloads() { downloads.begin(); it != downloads.end(); ++it) { - (*it)->Cancel(false); + if ((*it)->GetState() == content::DownloadItem::IN_PROGRESS) + (*it)->Cancel(false); } } } |