Chromium Code Reviews| Index: chrome/browser/extensions/api/downloads/downloads_api.cc |
| diff --git a/chrome/browser/extensions/api/downloads/downloads_api.cc b/chrome/browser/extensions/api/downloads/downloads_api.cc |
| index 0a297d2116bd4a67bd2bed82ea1b9fbfa9a1556f..c8fc9921f1a7da08effe28cd23b0bc691ee5a2cd 100644 |
| --- a/chrome/browser/extensions/api/downloads/downloads_api.cc |
| +++ b/chrome/browser/extensions/api/downloads/downloads_api.cc |
| @@ -1038,7 +1038,6 @@ void DownloadsDownloadFunction::OnStarted( |
| DCHECK_CURRENTLY_ON(BrowserThread::UI); |
| VLOG(1) << __FUNCTION__ << " " << item << " " << interrupt_reason; |
| if (item) { |
| - DCHECK_EQ(content::DOWNLOAD_INTERRUPT_REASON_NONE, interrupt_reason); |
| SetResult(new base::FundamentalValue(static_cast<int>(item->GetId()))); |
| if (!creator_suggested_filename.empty() || |
| (creator_conflict_action != |
| @@ -1056,7 +1055,6 @@ void DownloadsDownloadFunction::OnStarted( |
| new DownloadedByExtension(item, extension()->id(), extension()->name()); |
| item->UpdateObservers(); |
| } else { |
| - DCHECK_NE(content::DOWNLOAD_INTERRUPT_REASON_NONE, interrupt_reason); |
| error_ = content::DownloadInterruptReasonToString(interrupt_reason); |
|
benjhayden
2016/02/13 00:07:32
Let me see if I'm reading this right.
The OnStart
Randy Smith (Not in Mondays)
2016/02/13 00:19:29
FWIW, my understanding of the code is that we may
asanka
2016/02/13 00:57:36
You're right that the above DCHECK should'be been
|
| } |
| SendResponse(error_.empty()); |