Index: webkit/fileapi/sandbox_mount_point_provider.cc |
diff --git a/webkit/fileapi/sandbox_mount_point_provider.cc b/webkit/fileapi/sandbox_mount_point_provider.cc |
index dbef6c315307620fc222b286809a3706d250f4ad..b8f488b1a9776710270bc42fb14f8e6b0b48f88b 100644 |
--- a/webkit/fileapi/sandbox_mount_point_provider.cc |
+++ b/webkit/fileapi/sandbox_mount_point_provider.cc |
@@ -554,14 +554,7 @@ int64 SandboxMountPointProvider::GetOriginUsageOnFileThread( |
while (!(file_path_each = enumerator->Next()).empty()) { |
base::PlatformFileInfo file_info; |
FilePath platform_file_path; |
- if (!enumerator->IsDirectory()) { |
- base::PlatformFileError error = sandbox_file_util_->GetFileInfo( |
- &context, file_path_each, &file_info, &platform_file_path); |
- if (error != base::PLATFORM_FILE_OK) |
- NOTREACHED(); |
- else |
- usage += file_info.size; |
- } |
+ usage += enumerator->Size(); |
usage += ObfuscatedFileSystemFileUtil::ComputeFilePathCost(file_path_each); |
} |
// This clears the dirty flag too. |