Index: chrome/browser/chromeos/file_system_provider/operations/delete_entry.cc |
diff --git a/chrome/browser/chromeos/file_system_provider/operations/delete_entry.cc b/chrome/browser/chromeos/file_system_provider/operations/delete_entry.cc |
index cf77806cd27422e21b35c4cbd8c47239c2b0df20..e44c2d170337ab40eee97b2648423ae19e79e714 100644 |
--- a/chrome/browser/chromeos/file_system_provider/operations/delete_entry.cc |
+++ b/chrome/browser/chromeos/file_system_provider/operations/delete_entry.cc |
@@ -28,17 +28,22 @@ DeleteEntry::~DeleteEntry() { |
} |
bool DeleteEntry::Execute(int request_id) { |
+ using extensions::api::file_system_provider::DeleteEntryRequestedOptions; |
+ |
if (!file_system_info_.writable()) |
return false; |
- scoped_ptr<base::DictionaryValue> values(new base::DictionaryValue); |
- values->SetString("entryPath", entry_path_.AsUTF8Unsafe()); |
- values->SetBoolean("recursive", recursive_); |
+ DeleteEntryRequestedOptions options; |
+ options.file_system_id = file_system_info_.file_system_id(); |
+ options.request_id = request_id; |
+ options.entry_path = entry_path_.AsUTF8Unsafe(); |
+ options.recursive = recursive_; |
return SendEvent( |
request_id, |
extensions::api::file_system_provider::OnDeleteEntryRequested::kEventName, |
- values.Pass()); |
+ extensions::api::file_system_provider::OnDeleteEntryRequested::Create( |
+ options)); |
} |
void DeleteEntry::OnSuccess(int /* request_id */, |