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

Unified Diff: chrome/browser/sync_file_system/local/sync_file_system_backend.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: chrome/browser/sync_file_system/local/sync_file_system_backend.cc
diff --git a/chrome/browser/sync_file_system/local/sync_file_system_backend.cc b/chrome/browser/sync_file_system/local/sync_file_system_backend.cc
index aba7756d999ee3dbb0b310592585ba9b3404d427..ad04c63ca308a1bb7f0789f410a31843f4a9e578 100644
--- a/chrome/browser/sync_file_system/local/sync_file_system_backend.cc
+++ b/chrome/browser/sync_file_system/local/sync_file_system_backend.cc
@@ -137,9 +137,9 @@ fileapi::AsyncFileUtil* SyncFileSystemBackend::GetAsyncFileUtil(
fileapi::CopyOrMoveFileValidatorFactory*
SyncFileSystemBackend::GetCopyOrMoveFileValidatorFactory(
fileapi::FileSystemType type,
- base::PlatformFileError* error_code) {
+ base::File::Error* error_code) {
DCHECK(error_code);
- *error_code = base::PLATFORM_FILE_OK;
+ *error_code = base::File::FILE_OK;
return NULL;
}
@@ -147,7 +147,7 @@ fileapi::FileSystemOperation*
SyncFileSystemBackend::CreateFileSystemOperation(
const fileapi::FileSystemURL& url,
fileapi::FileSystemContext* context,
- base::PlatformFileError* error_code) const {
+ base::File::Error* error_code) const {
DCHECK(CanHandleType(url.type()));
DCHECK(context);
DCHECK(error_code);
@@ -277,13 +277,13 @@ void SyncFileSystemBackend::DidInitializeSyncFileSystemService(
if (status != sync_file_system::SYNC_STATUS_OK) {
callback.Run(GURL(), std::string(),
- SyncStatusCodeToPlatformFileError(status));
+ SyncStatusCodeToFileError(status));
return;
}
callback.Run(GetSyncableFileSystemRootURI(origin_url),
GetFileSystemName(origin_url, type),
- base::PLATFORM_FILE_OK);
+ base::File::FILE_OK);
}
} // namespace sync_file_system

Powered by Google App Engine
This is Rietveld 408576698