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

Unified Diff: chrome/browser/extensions/api/sync_file_system/sync_file_system_api.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/extensions/api/sync_file_system/sync_file_system_api.cc
diff --git a/chrome/browser/extensions/api/sync_file_system/sync_file_system_api.cc b/chrome/browser/extensions/api/sync_file_system/sync_file_system_api.cc
index dd1036f4a20ad10a354c0b76a41f7168478dffa0..41f05972db4483cf6c8b566d61c74f0089ce25f7 100644
--- a/chrome/browser/extensions/api/sync_file_system/sync_file_system_api.cc
+++ b/chrome/browser/extensions/api/sync_file_system/sync_file_system_api.cc
@@ -90,7 +90,7 @@ bool SyncFileSystemDeleteFileSystemFunction::RunImpl() {
}
void SyncFileSystemDeleteFileSystemFunction::DidDeleteFileSystem(
- base::PlatformFileError error) {
+ base::File::Error error) {
// Repost to switch from IO thread to UI thread for SendResponse().
if (!BrowserThread::CurrentlyOn(BrowserThread::UI)) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
@@ -103,9 +103,8 @@ void SyncFileSystemDeleteFileSystemFunction::DidDeleteFileSystem(
}
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
- if (error != base::PLATFORM_FILE_OK) {
- error_ = ErrorToString(
- sync_file_system::PlatformFileErrorToSyncStatusCode(error));
+ if (error != base::File::FILE_OK) {
+ error_ = ErrorToString(sync_file_system::FileErrorToSyncStatusCode(error));
SetResult(new base::FundamentalValue(false));
SendResponse(false);
return;
@@ -145,7 +144,7 @@ SyncFileSystemRequestFileSystemFunction::GetFileSystemContext() {
void SyncFileSystemRequestFileSystemFunction::DidOpenFileSystem(
const GURL& root_url,
const std::string& file_system_name,
- base::PlatformFileError error) {
+ base::File::Error error) {
// Repost to switch from IO thread to UI thread for SendResponse().
if (!BrowserThread::CurrentlyOn(BrowserThread::UI)) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
@@ -157,9 +156,8 @@ void SyncFileSystemRequestFileSystemFunction::DidOpenFileSystem(
}
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
- if (error != base::PLATFORM_FILE_OK) {
- error_ = ErrorToString(
- sync_file_system::PlatformFileErrorToSyncStatusCode(error));
+ if (error != base::File::FILE_OK) {
+ error_ = ErrorToString(sync_file_system::FileErrorToSyncStatusCode(error));
SendResponse(false);
return;
}

Powered by Google App Engine
This is Rietveld 408576698