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

Unified Diff: chrome/browser/extensions/api/file_system/file_system_api.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/extensions/api/file_system/file_system_api.cc
diff --git a/chrome/browser/extensions/api/file_system/file_system_api.cc b/chrome/browser/extensions/api/file_system/file_system_api.cc
index 58e9bfb5ba6ed19eef5e8b4194ea9deecca840f6..988d8025b9d7b0e89753fac6d5897e9d82fd918f 100644
--- a/chrome/browser/extensions/api/file_system/file_system_api.cc
+++ b/chrome/browser/extensions/api/file_system/file_system_api.cc
@@ -1149,19 +1149,16 @@ bool FileSystemRetainEntryFunction::RunAsync() {
.Append(base::FilePath::FromUTF8Unsafe(filesystem_path)));
content::BrowserThread::PostTask(
- content::BrowserThread::IO,
- FROM_HERE,
+ content::BrowserThread::IO, FROM_HERE,
base::Bind(
base::IgnoreResult(
&storage::FileSystemOperationRunner::GetMetadata),
- context->operation_runner()->AsWeakPtr(),
- url,
+ context->operation_runner()->AsWeakPtr(), url,
+ storage::FileSystemOperation::GET_METADATA_FIELD_IS_DIRECTORY,
base::Bind(
&PassFileInfoToUIThread,
base::Bind(&FileSystemRetainEntryFunction::RetainFileEntry,
- this,
- entry_id,
- path))));
+ this, entry_id, path))));
return true;
}

Powered by Google App Engine
This is Rietveld 408576698