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

Unified Diff: chrome/browser/sync_file_system/local/local_file_sync_context.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/sync_file_system/local/local_file_sync_context.cc
diff --git a/chrome/browser/sync_file_system/local/local_file_sync_context.cc b/chrome/browser/sync_file_system/local/local_file_sync_context.cc
index 571ceab4bd516d9cd70b5c56d0aeb1ff2cab7da6..2d3cfbbf82357076142fe018345883e9967ef75a 100644
--- a/chrome/browser/sync_file_system/local/local_file_sync_context.cc
+++ b/chrome/browser/sync_file_system/local/local_file_sync_context.cc
@@ -463,8 +463,10 @@ void LocalFileSyncContext::GetFileMetadata(
FileSystemURL url_for_sync = CreateSyncableFileSystemURLForSync(
file_system_context, url);
file_system_context->operation_runner()->GetMetadata(
- url_for_sync, base::Bind(&LocalFileSyncContext::DidGetFileMetadata,
- this, callback));
+ url_for_sync, FileSystemOperation::GET_METADATA_FIELD_IS_DIRECTORY |
+ FileSystemOperation::GET_METADATA_FIELD_SIZE |
+ FileSystemOperation::GET_METADATA_FIELD_LAST_MODIFIED,
+ base::Bind(&LocalFileSyncContext::DidGetFileMetadata, this, callback));
}
void LocalFileSyncContext::HasPendingLocalChanges(

Powered by Google App Engine
This is Rietveld 408576698