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

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

Issue 8369005: Fix a bug where putting a laptop to sleep causes downloads to end normally. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 2 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
« no previous file with comments | « content/browser/download/download_resource_handler.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/interrupt_reasons.cc
diff --git a/content/browser/download/interrupt_reasons.cc b/content/browser/download/interrupt_reasons.cc
index 75c60b97dd12cf7b0ee483557f11e705b2ec9269..6d9ccc607ff0d27224afd43869c21a656c19d800 100644
--- a/content/browser/download/interrupt_reasons.cc
+++ b/content/browser/download/interrupt_reasons.cc
@@ -19,6 +19,7 @@ InterruptReason ConvertNetErrorToInterruptReason(
net::Error net_error, DownloadInterruptSource source) {
switch (net_error) {
// File errors.
+ case net::OK: return DOWNLOAD_INTERRUPT_REASON_NONE;
// The file is too large.
FILE_ERROR_TO_INTERRUPT_REASON(FILE_TOO_BIG, TOO_LARGE)
@@ -93,7 +94,10 @@ std::string InterruptReasonDebugString(InterruptReason error) {
case DOWNLOAD_INTERRUPT_REASON_##name: return #name;
switch (error) {
+ INTERRUPT_REASON(NONE, 0)
+
#include "content/browser/download/interrupt_reason_values.h"
+
default:
break;
}
« no previous file with comments | « content/browser/download/download_resource_handler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698