Index: content/common/fileapi/webfilesystem_callback_dispatcher.cc |
diff --git a/content/common/fileapi/webfilesystem_callback_dispatcher.cc b/content/common/fileapi/webfilesystem_callback_dispatcher.cc |
index 0020f08a96ed3e5d22c7a8ac5c9c2ab13a55196c..02181d143a82d520edb932280aea2b02344130f8 100644 |
--- a/content/common/fileapi/webfilesystem_callback_dispatcher.cc |
+++ b/content/common/fileapi/webfilesystem_callback_dispatcher.cc |
@@ -36,14 +36,8 @@ void WebFileSystemCallbackDispatcher::DidSucceed() { |
void WebFileSystemCallbackDispatcher::DidReadMetadata( |
const base::PlatformFileInfo& file_info, const FilePath& platform_path) { |
WebFileInfo web_file_info; |
- web_file_info.modificationTime = file_info.last_modified.ToDoubleT(); |
- web_file_info.length = file_info.size; |
- if (file_info.is_directory) |
- web_file_info.type = WebFileInfo::TypeDirectory; |
- else |
- web_file_info.type = WebFileInfo::TypeFile; |
- web_file_info.platformPath = |
- webkit_glue::FilePathToWebString(platform_path); |
+ webkit_glue::PlatformFileInfoToWebFileInfo(file_info, &web_file_info); |
+ web_file_info.platformPath = webkit_glue::FilePathToWebString(platform_path); |
callbacks_->didReadMetadata(web_file_info); |
} |