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

Unified Diff: webkit/browser/fileapi/remove_operation_delegate.cc

Issue 145303002: Convert Media Galleries to use base::File (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 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/browser/fileapi/remove_operation_delegate.cc
diff --git a/webkit/browser/fileapi/remove_operation_delegate.cc b/webkit/browser/fileapi/remove_operation_delegate.cc
index 4819f0164e5a995d9b23ac4c61454fb9677fee38..6c7b2defdf2cbba31194e55430b3125f64f42761 100644
--- a/webkit/browser/fileapi/remove_operation_delegate.cc
+++ b/webkit/browser/fileapi/remove_operation_delegate.cc
@@ -41,7 +41,7 @@ void RemoveOperationDelegate::ProcessFile(const FileSystemURL& url,
void RemoveOperationDelegate::ProcessDirectory(const FileSystemURL& url,
const StatusCallback& callback) {
- callback.Run(base::PLATFORM_FILE_OK);
+ callback.Run(base::File::FILE_OK);
}
void RemoveOperationDelegate::PostProcessDirectory(
@@ -49,10 +49,9 @@ void RemoveOperationDelegate::PostProcessDirectory(
operation_runner()->RemoveDirectory(url, callback);
}
-void RemoveOperationDelegate::DidTryRemoveFile(
- base::PlatformFileError error) {
- if (error != base::PLATFORM_FILE_ERROR_NOT_A_FILE &&
- error != base::PLATFORM_FILE_ERROR_SECURITY) {
+void RemoveOperationDelegate::DidTryRemoveFile(base::File::Error error) {
+ if (error != base::File::FILE_ERROR_NOT_A_FILE &&
+ error != base::File::FILE_ERROR_SECURITY) {
callback_.Run(error);
return;
}
@@ -63,18 +62,18 @@ void RemoveOperationDelegate::DidTryRemoveFile(
}
void RemoveOperationDelegate::DidTryRemoveDirectory(
- base::PlatformFileError remove_file_error,
- base::PlatformFileError remove_directory_error) {
+ base::File::Error remove_file_error,
+ base::File::Error remove_directory_error) {
callback_.Run(
- remove_directory_error == base::PLATFORM_FILE_ERROR_NOT_A_DIRECTORY ?
+ remove_directory_error == base::File::FILE_ERROR_NOT_A_DIRECTORY ?
remove_file_error :
remove_directory_error);
}
void RemoveOperationDelegate::DidRemoveFile(const StatusCallback& callback,
- base::PlatformFileError error) {
- if (error == base::PLATFORM_FILE_ERROR_NOT_FOUND) {
- callback.Run(base::PLATFORM_FILE_OK);
+ base::File::Error error) {
+ if (error == base::File::FILE_ERROR_NOT_FOUND) {
+ callback.Run(base::File::FILE_OK);
return;
}
callback.Run(error);
« no previous file with comments | « webkit/browser/fileapi/remove_operation_delegate.h ('k') | webkit/browser/fileapi/sandbox_directory_database.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698