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

Unified Diff: content/renderer/pepper/pepper_file_io_host.cc

Issue 16140025: Pepper: Refactor FileInfo conversions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 7 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
« no previous file with comments | « no previous file | ppapi/shared_impl/file_type_conversion.h » ('j') | ppapi/shared_impl/file_type_conversion.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper/pepper_file_io_host.cc
diff --git a/content/renderer/pepper/pepper_file_io_host.cc b/content/renderer/pepper/pepper_file_io_host.cc
index d92dd69eb9b8bc3077f818cfac9b2b89699dd66e..9f01d83e79dbba1be1b71d886f9d8e9aa51e474d 100644
--- a/content/renderer/pepper/pepper_file_io_host.cc
+++ b/content/renderer/pepper/pepper_file_io_host.cc
@@ -493,15 +493,8 @@ void PepperFileIOHost::ExecutePlatformQueryCallback(
base::PlatformFileError error_code,
const base::PlatformFileInfo& file_info) {
PP_FileInfo pp_info;
- pp_info.size = file_info.size;
- pp_info.creation_time = TimeToPPTime(file_info.creation_time);
- pp_info.last_access_time = TimeToPPTime(file_info.last_accessed);
- pp_info.last_modified_time = TimeToPPTime(file_info.last_modified);
- pp_info.system_type = file_system_type_;
- if (file_info.is_directory)
- pp_info.type = PP_FILETYPE_DIRECTORY;
- else
- pp_info.type = PP_FILETYPE_REGULAR;
+ ppapi::PlatformFileInfoToPepperFileInfo(file_info, file_system_type_,
+ &pp_info);
int32_t pp_error = ::ppapi::PlatformFileErrorToPepperError(error_code);
reply_context.params.set_result(pp_error);
« no previous file with comments | « no previous file | ppapi/shared_impl/file_type_conversion.h » ('j') | ppapi/shared_impl/file_type_conversion.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698