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

Unified Diff: content/browser/download/download_file_manager.cc

Issue 9570005: Added callback to DownloadUrl() so we can find download failures. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed CLANG issue. Created 8 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: content/browser/download/download_file_manager.cc
diff --git a/content/browser/download/download_file_manager.cc b/content/browser/download/download_file_manager.cc
index d6168e40168c7674fc5be27ea3ac77bc14336db3..ae6aeb13d99e0d4c23c4d4ed1ac3610046ec2a56 100644
--- a/content/browser/download/download_file_manager.cc
+++ b/content/browser/download/download_file_manager.cc
@@ -178,11 +178,7 @@ void DownloadFileManager::StartDownload(
DCHECK(info);
DownloadManager* manager = request_handle.GetDownloadManager();
- if (!manager) {
- request_handle.CancelRequest();
- delete info;
- return;
- }
+ DCHECK(manager); // Checked in |DownloadResourceHandler::StartOnUIThread()|.
// |bound_net_log| will be used for logging the both the download item's and
// the download file's events.

Powered by Google App Engine
This is Rietveld 408576698