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

Unified Diff: webkit/fileapi/sandbox_mount_point_provider.cc

Issue 7717020: Adding Size() to AbstractFileEnumerator (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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
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.

Powered by Google App Engine
This is Rietveld 408576698