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

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

Issue 10702130: Add test for failing rename in BaseFileTest. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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/base_file.cc
diff --git a/content/browser/download/base_file.cc b/content/browser/download/base_file.cc
index 0ca3f6f7fff5dd118f6c5970c7aa4763883cac1b..396ac33cee2ce1b5333ccb22a8f2b8380bab0304 100644
--- a/content/browser/download/base_file.cc
+++ b/content/browser/download/base_file.cc
@@ -189,7 +189,7 @@ net::Error RenameFileAndResetSecurityDescriptor(
int result = SHFileOperation(&move_info);
if (result == 0)
- return net::OK;
+ return (move_info.fAnyOperationsAborted) ? net::ERR_ABORTED : net::OK;
return MapShFileOperationCodes(result);
}
« no previous file with comments | « no previous file | content/browser/download/base_file_unittest.cc » ('j') | content/browser/download/base_file_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698