Index: webkit/browser/fileapi/native_file_util.cc |
diff --git a/webkit/browser/fileapi/native_file_util.cc b/webkit/browser/fileapi/native_file_util.cc |
index efc6d42d3731b5fec6707f8ccf8adfe4e766cde7..32e9467091cb5e924eddffe631e9fb7adb2c3b4f 100644 |
--- a/webkit/browser/fileapi/native_file_util.cc |
+++ b/webkit/browser/fileapi/native_file_util.cc |
@@ -242,7 +242,7 @@ PlatformFileError NativeFileUtil::DeleteFile(const base::FilePath& path) { |
return base::PLATFORM_FILE_ERROR_NOT_FOUND; |
if (base::DirectoryExists(path)) |
return base::PLATFORM_FILE_ERROR_NOT_A_FILE; |
- if (!base::Delete(path, false)) |
+ if (!base::DeleteFile(path, false)) |
return base::PLATFORM_FILE_ERROR_FAILED; |
return base::PLATFORM_FILE_OK; |
} |
@@ -254,7 +254,7 @@ PlatformFileError NativeFileUtil::DeleteDirectory(const base::FilePath& path) { |
return base::PLATFORM_FILE_ERROR_NOT_A_DIRECTORY; |
if (!file_util::IsDirectoryEmpty(path)) |
return base::PLATFORM_FILE_ERROR_NOT_EMPTY; |
- if (!base::Delete(path, false)) |
+ if (!base::DeleteFile(path, false)) |
return base::PLATFORM_FILE_ERROR_FAILED; |
return base::PLATFORM_FILE_OK; |
} |