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

Unified Diff: chrome/browser/chromeos/extensions/file_manager/private_api_file_system.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/chromeos/extensions/file_manager/private_api_file_system.cc
diff --git a/chrome/browser/chromeos/extensions/file_manager/private_api_file_system.cc b/chrome/browser/chromeos/extensions/file_manager/private_api_file_system.cc
index 1db6b67239a585e40aba7c6e2fe0e8b15fc73b0e..d3729e1591fb0e86d3bf52b120426b746d47bab4 100644
--- a/chrome/browser/chromeos/extensions/file_manager/private_api_file_system.cc
+++ b/chrome/browser/chromeos/extensions/file_manager/private_api_file_system.cc
@@ -153,7 +153,7 @@ void NotifyCopyCompletion(
fileapi::FileSystemOperationRunner::OperationID operation_id,
const FileSystemURL& source_url,
const FileSystemURL& destination_url,
- base::PlatformFileError error) {
+ base::File::Error error) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
file_manager::EventRouter* event_router =
@@ -171,7 +171,7 @@ void OnCopyCompleted(
fileapi::FileSystemOperationRunner::OperationID* operation_id,
const FileSystemURL& source_url,
const FileSystemURL& destination_url,
- base::PlatformFileError error) {
+ base::File::Error error) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
BrowserThread::PostTask(
@@ -205,12 +205,12 @@ fileapi::FileSystemOperationRunner::OperationID StartCopyOnIOThread(
return *operation_id;
}
-void OnCopyCancelled(base::PlatformFileError error) {
+void OnCopyCancelled(base::File::Error error) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
// We just ignore the status if the copy is actually cancelled or not,
// because failing cancellation means the operation is not running now.
- DLOG_IF(WARNING, error != base::PLATFORM_FILE_OK)
+ DLOG_IF(WARNING, error != base::File::FILE_OK)
<< "Failed to cancel copy: " << error;
}
@@ -227,7 +227,7 @@ void CancelCopyOnIOThread(
} // namespace
void FileBrowserPrivateRequestFileSystemFunction::DidFail(
- base::PlatformFileError error_code) {
+ base::File::Error error_code) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
error_ = base::StringPrintf("File error %d", static_cast<int>(error_code));
@@ -293,7 +293,7 @@ bool FileBrowserPrivateRequestFileSystemFunction::RunImpl() {
if (!SetupFileSystemAccessPermissions(file_system_context,
child_id,
GetExtension())) {
- DidFail(base::PLATFORM_FILE_ERROR_SECURITY);
+ DidFail(base::File::FILE_ERROR_SECURITY);
return false;
}

Powered by Google App Engine
This is Rietveld 408576698