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

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

Issue 14955002: [Resumption 6/11] Add a RESUMING_INTERNAL state to DownloadItem. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix REMOVED race. Created 7 years, 7 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_resource_handler.cc
diff --git a/content/browser/download/download_resource_handler.cc b/content/browser/download/download_resource_handler.cc
index 388bcd1e5a9a2853f21adef2a372f92cbae8dce5..09ce5229ce7602ae7a9627e210e28144c45f09de 100644
--- a/content/browser/download/download_resource_handler.cc
+++ b/content/browser/download/download_resource_handler.cc
@@ -66,7 +66,7 @@ static void StartOnUIThread(
info.Pass(), stream.Pass());
if (!started_cb.is_null())
- started_cb.Run(item, net::OK);
+ started_cb.Run(item, item ? net::OK : net::ERR_FAILED);
benjhayden 2013/05/11 17:10:09 Could item be NULL for any reason other than the R
asanka 2013/05/13 19:19:01 Done.
}
} // namespace

Powered by Google App Engine
This is Rietveld 408576698