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 865e7a01f34804c11fd4ca96243ba40ad9089d5a..ca7e68e6118deaf4d2cd435a2b7bb10fe0f47a59 100644 |
--- a/content/browser/download/download_item_impl.cc |
+++ b/content/browser/download/download_item_impl.cc |
@@ -1448,6 +1448,8 @@ void DownloadItemImpl::Interrupt(DownloadInterruptReason reason) { |
// enabled for the same reason. |
ReleaseDownloadFile(resume_mode == RESUME_MODE_IMMEDIATE_RESTART || |
resume_mode == RESUME_MODE_USER_RESTART || |
+ (resume_mode == RESUME_MODE_INVALID && |
asanka
2014/03/04 21:17:49
You can just check for resume_mode == RESUME_MODE_
|
+ last_reason_ != DOWNLOAD_INTERRUPT_REASON_NONE) || |
!IsDownloadResumptionEnabled()); |
// Cancel the originating URL request. |