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

Unified Diff: webkit/plugins/ppapi/ppb_file_ref_impl.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
Index: webkit/plugins/ppapi/ppb_file_ref_impl.cc
diff --git a/webkit/plugins/ppapi/ppb_file_ref_impl.cc b/webkit/plugins/ppapi/ppb_file_ref_impl.cc
index 2bd1eabf671789e8f6710ff2b389eeacc4b31118..c3d810d569d335d97afe5aa68b20e970183c373c 100644
--- a/webkit/plugins/ppapi/ppb_file_ref_impl.cc
+++ b/webkit/plugins/ppapi/ppb_file_ref_impl.cc
@@ -97,22 +97,7 @@ void PlatformFileInfoToPPFileInfo(
PP_FileSystemType file_system_type,
PP_FileInfo* info) {
DCHECK(info);
-
- info->size = file_info.size;
- info->system_type = file_system_type;
- info->creation_time = ::ppapi::TimeToPPTime(file_info.creation_time);
- info->last_access_time = ::ppapi::TimeToPPTime(file_info.last_accessed);
- info->last_modified_time = ::ppapi::TimeToPPTime(file_info.last_modified);
-
- if (file_info.is_symbolic_link) {
- // Only external filesystem may have symbolic link files.
- DCHECK_EQ(PP_FILESYSTEMTYPE_EXTERNAL, file_system_type);
yzshen1 2013/06/04 05:22:28 Does it make sense to perserve this DCHECK in the
- info->type = PP_FILETYPE_OTHER;
- } else if (file_info.is_directory) {
- info->type = PP_FILETYPE_DIRECTORY;
- } else {
- info->type = PP_FILETYPE_REGULAR;
- }
+ ::ppapi::PlatformFileInfoToPepperFileInfo(file_info, file_system_type, info);
}
void GetFileInfoCallback(
« ppapi/shared_impl/file_type_conversion.cc ('K') | « ppapi/shared_impl/file_type_conversion.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698