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

Unified Diff: chrome/browser/chromeos/extensions/file_manager/private_api_file_system.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: chrome/browser/chromeos/extensions/file_manager/private_api_file_system.cc
diff --git a/chrome/browser/chromeos/extensions/file_manager/private_api_file_system.cc b/chrome/browser/chromeos/extensions/file_manager/private_api_file_system.cc
index 9c0b33bdd7af309b958dbbe71773302cd35643fc..4d8d3fb2534e6efe746af6007fa35e493af469d8 100644
--- a/chrome/browser/chromeos/extensions/file_manager/private_api_file_system.cc
+++ b/chrome/browser/chromeos/extensions/file_manager/private_api_file_system.cc
@@ -602,10 +602,11 @@ bool FileManagerPrivateFormatVolumeFunction::RunAsync() {
void GetFileMetadataOnIOThread(
scoped_refptr<storage::FileSystemContext> file_system_context,
const FileSystemURL& url,
+ int fields,
const storage::FileSystemOperation::GetMetadataCallback& callback) {
DCHECK_CURRENTLY_ON(BrowserThread::IO);
file_system_context->operation_runner()->GetMetadata(
- url, base::Bind(&GetFileMetadataRespondOnUIThread, callback));
+ url, fields, base::Bind(&GetFileMetadataRespondOnUIThread, callback));
}
// Checks if the available space of the |path| is enough for required |bytes|.
@@ -656,6 +657,7 @@ bool FileManagerPrivateInternalStartCopyFunction::RunAsync() {
return BrowserThread::PostTask(
BrowserThread::IO, FROM_HERE,
base::Bind(&GetFileMetadataOnIOThread, file_system_context, source_url_,
+ storage::FileSystemOperation::GET_METADATA_FIELD_SIZE,
base::Bind(&FileManagerPrivateInternalStartCopyFunction::
RunAfterGetFileMetadata,
this)));
« no previous file with comments | « chrome/browser/chromeos/drive/fileapi/async_file_util.cc ('k') | chrome/browser/chromeos/file_manager/fileapi_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698