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

Unified Diff: chrome/browser/chromeos/file_system_provider/operations/get_metadata.cc

Issue 547313002: [fsp] Use auto generated methods for generating dictionaries. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 6 years, 3 months 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/file_system_provider/operations/get_metadata.cc
diff --git a/chrome/browser/chromeos/file_system_provider/operations/get_metadata.cc b/chrome/browser/chromeos/file_system_provider/operations/get_metadata.cc
index 7adab121d0dfa3655ed193c5c2b24b4985687f4a..c38aedbaa06a8e48a4c618d46f9bb89607aa434e 100644
--- a/chrome/browser/chromeos/file_system_provider/operations/get_metadata.cc
+++ b/chrome/browser/chromeos/file_system_provider/operations/get_metadata.cc
@@ -83,16 +83,20 @@ GetMetadata::~GetMetadata() {
}
bool GetMetadata::Execute(int request_id) {
- scoped_ptr<base::DictionaryValue> values(new base::DictionaryValue);
- values->SetString("entryPath", entry_path_.AsUTF8Unsafe());
- values->SetBoolean(
- "thumbnail",
- (fields_ & ProvidedFileSystemInterface::METADATA_FIELD_THUMBNAIL) != 0);
+ using extensions::api::file_system_provider::GetMetadataRequestedOptions;
+
+ GetMetadataRequestedOptions options;
+ options.file_system_id = file_system_info_.file_system_id();
+ options.request_id = request_id;
+ options.entry_path = entry_path_.AsUTF8Unsafe();
+ options.thumbnail =
+ fields_ & ProvidedFileSystemInterface::METADATA_FIELD_THUMBNAIL;
return SendEvent(
request_id,
extensions::api::file_system_provider::OnGetMetadataRequested::kEventName,
- values.Pass());
+ extensions::api::file_system_provider::OnGetMetadataRequested::Create(
+ options));
}
void GetMetadata::OnSuccess(int /* request_id */,

Powered by Google App Engine
This is Rietveld 408576698