Unmount::Unmount(extensions::EventRouter* event_router,
const ProvidedFileSystemInfo& file_system_info,
- const fileapi::AsyncFileUtil::StatusCallback& callback)
+ const storage::AsyncFileUtil::StatusCallback& callback)
: Operation(event_router, file_system_info), callback_(callback) {
}
}
bool Unmount::Execute(int request_id) {
- scoped_ptr<base::DictionaryValue> values(new base::DictionaryValue);
+ using extensions::api::file_system_provider::UnmountRequestedOptions;
+
+ UnmountRequestedOptions options;
+ options.file_system_id = file_system_info_.file_system_id();
+ options.request_id = request_id;
+
return SendEvent(
request_id,
extensions::api::file_system_provider::OnUnmountRequested::kEventName,
- values.Pass());
+ extensions::api::file_system_provider::OnUnmountRequested::Create(
+ options));
}
void Unmount::OnSuccess(int /* request_id */,