Index: webkit/fileapi/file_system_file_util.cc |
diff --git a/webkit/fileapi/file_system_file_util.cc b/webkit/fileapi/file_system_file_util.cc |
index aadc1cb2a958624f29d30a7d534181ffb27b8da6..85f57e2cdfd8b159e9e4e79761d4de19b6d68e5b 100644 |
--- a/webkit/fileapi/file_system_file_util.cc |
+++ b/webkit/fileapi/file_system_file_util.cc |
@@ -234,12 +234,12 @@ FileSystemFileUtil::PerformCommonCheckAndPreparationForMoveAndCopy( |
bool src_is_directory = DirectoryExists(context, src_file_path); |
bool dest_is_directory = DirectoryExists(context, dest_file_path); |
if (src_is_directory && !dest_is_directory) |
- return base::PLATFORM_FILE_ERROR_NOT_A_DIRECTORY; |
+ return base::PLATFORM_FILE_ERROR_INVALID_OPERATION; |
// |src_file_path| exists and is a file. |
// |dest_file_path| exists and is a directory. |
if (!src_is_directory && dest_is_directory) |
- return base::PLATFORM_FILE_ERROR_NOT_A_FILE; |
+ return base::PLATFORM_FILE_ERROR_INVALID_OPERATION; |
// It is an error to copy/move an entry into the same path. |
if (src_file_path.value() == dest_file_path.value()) |