Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2671)

Unified Diff: chrome/browser/extensions/api/downloads/downloads_api.cc

Issue 148133007: [Downloads] Always call DM::StartDownload() for explicit downloads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 12cd1d16e1aa561b88a7448a759c0cbb56513a4f..5fd5873d71a7dc063de0b0510b4b0602341d424c 100644
--- a/chrome/browser/extensions/api/downloads/downloads_api.cc
+++ b/chrome/browser/extensions/api/downloads/downloads_api.cc
@@ -1045,7 +1045,6 @@ void DownloadsDownloadFunction::OnStarted(
DCHECK(BrowserThread::CurrentlyOn(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()) {
ExtensionDownloadsEventRouterData* data =
@@ -1062,7 +1061,6 @@ void DownloadsDownloadFunction::OnStarted(
item, GetExtension()->id(), GetExtension()->name());
item->UpdateObservers();
} else {
- DCHECK_NE(content::DOWNLOAD_INTERRUPT_REASON_NONE, interrupt_reason);
error_ = content::DownloadInterruptReasonToString(interrupt_reason);
}
SendResponse(error_.empty());

Powered by Google App Engine
This is Rietveld 408576698