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

Unified Diff: content/browser/renderer_host/pepper/pepper_internal_file_ref_backend.cc

Issue 1455403003: Add an option to specify requested fields for fetching metadata. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleaned up. 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: content/browser/renderer_host/pepper/pepper_internal_file_ref_backend.cc
diff --git a/content/browser/renderer_host/pepper/pepper_internal_file_ref_backend.cc b/content/browser/renderer_host/pepper/pepper_internal_file_ref_backend.cc
index ddab7c00822ba878cc334932c64e223757b8443e..73be1a6f62a735812e856d4976ba154ffc420124 100644
--- a/content/browser/renderer_host/pepper/pepper_internal_file_ref_backend.cc
+++ b/content/browser/renderer_host/pepper/pepper_internal_file_ref_backend.cc
@@ -170,9 +170,11 @@ int32_t PepperInternalFileRefBackend::Query(
GetFileSystemContext()->operation_runner()->GetMetadata(
GetFileSystemURL(),
+ storage::FileSystemOperation::GET_METADATA_FIELD_IS_DIRECTORY |
+ storage::FileSystemOperation::GET_METADATA_FIELD_SIZE |
+ storage::FileSystemOperation::GET_METADATA_FIELD_LAST_MODIFIED,
base::Bind(&PepperInternalFileRefBackend::GetMetadataComplete,
- weak_factory_.GetWeakPtr(),
- reply_context));
+ weak_factory_.GetWeakPtr(), reply_context));
return PP_OK_COMPLETIONPENDING;
}
« no previous file with comments | « content/browser/fileapi/recursive_operation_delegate_unittest.cc ('k') | content/public/test/async_file_test_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698