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

Unified Diff: content/browser/renderer_host/pepper/pepper_external_file_ref_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: content/browser/renderer_host/pepper/pepper_external_file_ref_backend.cc
diff --git a/content/browser/renderer_host/pepper/pepper_external_file_ref_backend.cc b/content/browser/renderer_host/pepper/pepper_external_file_ref_backend.cc
index 4cea3d897c493adcfd6f1a506d2561b5f429d4a8..72eecd49c916f8c37ea5b7154b873fe3b9ca9cb2 100644
--- a/content/browser/renderer_host/pepper/pepper_external_file_ref_backend.cc
+++ b/content/browser/renderer_host/pepper/pepper_external_file_ref_backend.cc
@@ -133,21 +133,21 @@ int32_t PepperExternalFileRefBackend::CanReadWrite() const {
void PepperExternalFileRefBackend::DidFinish(
ppapi::host::ReplyMessageContext reply_context,
const IPC::Message& msg,
- base::PlatformFileError error) {
- reply_context.params.set_result(ppapi::PlatformFileErrorToPepperError(error));
+ base::File::Error error) {
+ reply_context.params.set_result(ppapi::FileErrorToPepperError(error));
host_->SendReply(reply_context, msg);
}
void PepperExternalFileRefBackend::GetMetadataComplete(
ppapi::host::ReplyMessageContext reply_context,
- const base::PlatformFileError error,
- const base::PlatformFileInfo& file_info) {
- reply_context.params.set_result(ppapi::PlatformFileErrorToPepperError(error));
+ const base::File::Error error,
+ const base::File::Info& file_info) {
+ reply_context.params.set_result(ppapi::FileErrorToPepperError(error));
PP_FileInfo pp_file_info;
- if (error == base::PLATFORM_FILE_OK) {
- ppapi::PlatformFileInfoToPepperFileInfo(
- file_info, PP_FILESYSTEMTYPE_EXTERNAL, &pp_file_info);
+ if (error == base::File::FILE_OK) {
+ ppapi::FileInfoToPepperFileInfo(file_info, PP_FILESYSTEMTYPE_EXTERNAL,
+ &pp_file_info);
} else {
memset(&pp_file_info, 0, sizeof(pp_file_info));
}

Powered by Google App Engine
This is Rietveld 408576698