Index: chrome/browser/chromeos/file_system_provider/operations/copy_entry.cc |
diff --git a/chrome/browser/chromeos/file_system_provider/operations/copy_entry.cc b/chrome/browser/chromeos/file_system_provider/operations/copy_entry.cc |
index 22c6d9b95ea7390d8dcb94573824ed257d7f4adb..87c227a638be2cc7a9af3e24e5736b132527a436 100644 |
--- a/chrome/browser/chromeos/file_system_provider/operations/copy_entry.cc |
+++ b/chrome/browser/chromeos/file_system_provider/operations/copy_entry.cc |
@@ -28,17 +28,22 @@ CopyEntry::~CopyEntry() { |
} |
bool CopyEntry::Execute(int request_id) { |
+ using extensions::api::file_system_provider::CopyEntryRequestedOptions; |
+ |
if (!file_system_info_.writable()) |
return false; |
- scoped_ptr<base::DictionaryValue> values(new base::DictionaryValue); |
- values->SetString("sourcePath", source_path_.AsUTF8Unsafe()); |
- values->SetString("targetPath", target_path_.AsUTF8Unsafe()); |
+ CopyEntryRequestedOptions options; |
+ options.file_system_id = file_system_info_.file_system_id(); |
+ options.request_id = request_id; |
+ options.source_path = source_path_.AsUTF8Unsafe(); |
+ options.target_path = target_path_.AsUTF8Unsafe(); |
return SendEvent( |
request_id, |
extensions::api::file_system_provider::OnCopyEntryRequested::kEventName, |
- values.Pass()); |
+ extensions::api::file_system_provider::OnCopyEntryRequested::Create( |
+ options)); |
} |
void CopyEntry::OnSuccess(int /* request_id */, |