Index: chrome/browser/chromeos/file_system_provider/operations/move_entry.cc |
diff --git a/chrome/browser/chromeos/file_system_provider/operations/move_entry.cc b/chrome/browser/chromeos/file_system_provider/operations/move_entry.cc |
index 572bd6487cd8acf9e5ff5de708db5241e136861b..a41cc2cf2df1ae1b20016bccce00a6510b0d1de6 100644 |
--- a/chrome/browser/chromeos/file_system_provider/operations/move_entry.cc |
+++ b/chrome/browser/chromeos/file_system_provider/operations/move_entry.cc |
@@ -28,17 +28,22 @@ MoveEntry::~MoveEntry() { |
} |
bool MoveEntry::Execute(int request_id) { |
+ using extensions::api::file_system_provider::MoveEntryRequestedOptions; |
+ |
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()); |
+ MoveEntryRequestedOptions 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::OnMoveEntryRequested::kEventName, |
- values.Pass()); |
+ extensions::api::file_system_provider::OnMoveEntryRequested::Create( |
+ options)); |
} |
void MoveEntry::OnSuccess(int /* request_id */, |