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

Unified Diff: content/common/fileapi/webfilesystem_callback_dispatcher.cc

Issue 10441016: Add FileUtilities::GetFileInfo() to capture file metadata with single IPC (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | « content/common/file_utilities_messages.h ('k') | content/renderer/renderer_webkitplatformsupport_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « content/common/file_utilities_messages.h ('k') | content/renderer/renderer_webkitplatformsupport_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698