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

Unified Diff: webkit/fileapi/obfuscated_file_util.cc

Issue 12036022: Split recursive Copy/Move into async tasks and support cross operation (in local case) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 11 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: webkit/fileapi/obfuscated_file_util.cc
diff --git a/webkit/fileapi/obfuscated_file_util.cc b/webkit/fileapi/obfuscated_file_util.cc
index 9bd64bc1cce38997332cb4f80eb78e9c7657f2aa..dd75118a978bf7f9467c6066989e03dc82f50250 100644
--- a/webkit/fileapi/obfuscated_file_util.cc
+++ b/webkit/fileapi/obfuscated_file_util.cc
@@ -877,8 +877,10 @@ base::PlatformFileError ObfuscatedFileUtil::CreateSnapshotFile(
*policy = kSnapshotFileLocal;
base::PlatformFileError error = GetFileInfo(
context, url, file_info, platform_path);
- if (error == base::PLATFORM_FILE_OK && file_info->is_directory)
+ if (error == base::PLATFORM_FILE_OK && file_info->is_directory) {
+ *file_info = base::PlatformFileInfo();
return base::PLATFORM_FILE_ERROR_NOT_A_FILE;
+ }
return error;
}
« no previous file with comments | « webkit/fileapi/local_file_system_operation_unittest.cc ('k') | webkit/fileapi/recursive_operation_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698