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

Unified Diff: webkit/fileapi/obfuscated_file_system_file_util.cc

Issue 7355013: Adding size and last modified time support to FileEnumerator and FileUtilProxy::Entry. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 9 years, 5 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 | « webkit/fileapi/file_system_file_util.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/fileapi/obfuscated_file_system_file_util.cc
diff --git a/webkit/fileapi/obfuscated_file_system_file_util.cc b/webkit/fileapi/obfuscated_file_system_file_util.cc
index b28dc92ce200025c9ed23403b2f27f5f8856728c..3b5b649650a8d0ffbfeecd282b377382d07e789b 100644
--- a/webkit/fileapi/obfuscated_file_system_file_util.cc
+++ b/webkit/fileapi/obfuscated_file_system_file_util.cc
@@ -232,9 +232,20 @@ PlatformFileError ObfuscatedFileSystemFileUtil::ReadDirectory(
NOTREACHED();
return base::PLATFORM_FILE_ERROR_FAILED;
}
+
+ FilePath data_path = DataPathToLocalPath(
+ context->src_origin_url(), context->src_type(), file_info.data_path);
+ base::PlatformFileInfo platform_file_info;
+ if (!file_util::GetFileInfo(data_path, &platform_file_info)) {
+ NOTREACHED();
+ return base::PLATFORM_FILE_ERROR_FAILED;
+ }
+
base::FileUtilProxy::Entry entry;
entry.name = file_info.name;
entry.is_directory = file_info.is_directory();
+ entry.size = platform_file_info.size;
+ entry.last_modified_time = platform_file_info.last_modified;
entries->push_back(entry);
}
return base::PLATFORM_FILE_OK;
« no previous file with comments | « webkit/fileapi/file_system_file_util.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698