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

Unified Diff: trunk/src/content/browser/download/download_interrupt_reasons_impl.cc

Issue 342233002: Revert 278483 "[Downloads] Retry renames after transient failures." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 6 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: trunk/src/content/browser/download/download_interrupt_reasons_impl.cc
===================================================================
--- trunk/src/content/browser/download/download_interrupt_reasons_impl.cc (revision 278536)
+++ trunk/src/content/browser/download/download_interrupt_reasons_impl.cc (working copy)
@@ -8,35 +8,6 @@
namespace content {
-DownloadInterruptReason ConvertFileErrorToInterruptReason(
- base::File::Error file_error) {
- switch (file_error) {
- case base::File::FILE_OK:
- return DOWNLOAD_INTERRUPT_REASON_NONE;
-
- case base::File::FILE_ERROR_IN_USE:
- return DOWNLOAD_INTERRUPT_REASON_FILE_TRANSIENT_ERROR;
-
- case base::File::FILE_ERROR_ACCESS_DENIED:
- return DOWNLOAD_INTERRUPT_REASON_FILE_ACCESS_DENIED;
-
- case base::File::FILE_ERROR_TOO_MANY_OPENED:
- return DOWNLOAD_INTERRUPT_REASON_FILE_TRANSIENT_ERROR;
-
- case base::File::FILE_ERROR_NO_MEMORY:
- return DOWNLOAD_INTERRUPT_REASON_FILE_TRANSIENT_ERROR;
-
- case base::File::FILE_ERROR_NO_SPACE:
- return DOWNLOAD_INTERRUPT_REASON_FILE_NO_SPACE;
-
- case base::File::FILE_ERROR_SECURITY:
- return DOWNLOAD_INTERRUPT_REASON_FILE_ACCESS_DENIED;
-
- default:
- return DOWNLOAD_INTERRUPT_REASON_FILE_FAILED;
- }
-}
-
DownloadInterruptReason ConvertNetErrorToInterruptReason(
net::Error net_error, DownloadInterruptSource source) {
switch (net_error) {

Powered by Google App Engine
This is Rietveld 408576698