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

Unified Diff: storage/browser/fileapi/file_system_operation_runner.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: storage/browser/fileapi/file_system_operation_runner.cc
diff --git a/storage/browser/fileapi/file_system_operation_runner.cc b/storage/browser/fileapi/file_system_operation_runner.cc
index 16480557078ce8437d4827b6124488ebc97782cb..4b5d422f0282b8beac1b1b05d94a0bd4f05a3280 100644
--- a/storage/browser/fileapi/file_system_operation_runner.cc
+++ b/storage/browser/fileapi/file_system_operation_runner.cc
@@ -175,6 +175,7 @@ OperationID FileSystemOperationRunner::FileExists(
OperationID FileSystemOperationRunner::GetMetadata(
const FileSystemURL& url,
+ int fields,
const GetMetadataCallback& callback) {
base::File::Error error = base::File::FILE_OK;
FileSystemOperation* operation =
@@ -186,10 +187,9 @@ OperationID FileSystemOperationRunner::GetMetadata(
return handle.id;
}
PrepareForRead(handle.id, url);
- operation->GetMetadata(
- url,
- base::Bind(&FileSystemOperationRunner::DidGetMetadata, AsWeakPtr(),
- handle, callback));
+ operation->GetMetadata(url, fields,
+ base::Bind(&FileSystemOperationRunner::DidGetMetadata,
+ AsWeakPtr(), handle, callback));
return handle.id;
}
« no previous file with comments | « storage/browser/fileapi/file_system_operation_runner.h ('k') | storage/browser/fileapi/file_system_url_request_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698