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

Unified Diff: chrome/browser/chromeos/file_system_provider/operations/read_directory.cc

Issue 1432403003: Do not call stat() when reading directories via File API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed FSP tests. Created 5 years, 1 month 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: chrome/browser/chromeos/file_system_provider/operations/read_directory.cc
diff --git a/chrome/browser/chromeos/file_system_provider/operations/read_directory.cc b/chrome/browser/chromeos/file_system_provider/operations/read_directory.cc
index d9f34c16ed03d8f11637bb9551a6e6badb01b930..72ec917cfbd38a3bbdd7b99421bc47189f626ea3 100644
--- a/chrome/browser/chromeos/file_system_provider/operations/read_directory.cc
+++ b/chrome/browser/chromeos/file_system_provider/operations/read_directory.cc
@@ -35,17 +35,6 @@ bool ConvertRequestValueToEntryList(scoped_ptr<RequestValue> value,
storage::DirectoryEntry output_entry;
output_entry.is_directory = entry_metadata->is_directory;
output_entry.name = entry_metadata->name;
- output_entry.size = static_cast<int64>(entry_metadata->size);
-
- std::string input_modification_time;
- if (!entry_metadata->modification_time.additional_properties.GetString(
- "value", &input_modification_time)) {
- NOTREACHED();
- }
- if (!base::Time::FromString(input_modification_time.c_str(),
- &output_entry.last_modified_time)) {
- NOTREACHED();
- }
output->push_back(output_entry);
}

Powered by Google App Engine
This is Rietveld 408576698