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

Unified Diff: chrome/browser/chromeos/file_system_provider/operations/abort.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
« no previous file with comments | « no previous file | chrome/browser/chromeos/file_system_provider/operations/abort_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/file_system_provider/operations/abort.cc
diff --git a/chrome/browser/chromeos/file_system_provider/operations/abort.cc b/chrome/browser/chromeos/file_system_provider/operations/abort.cc
index 19db30274dc4d38723ce883ce10fbb78602a46ff..53e9bbfe28d02f6880fc497eb0c8ac13464a3be1 100644
--- a/chrome/browser/chromeos/file_system_provider/operations/abort.cc
+++ b/chrome/browser/chromeos/file_system_provider/operations/abort.cc
@@ -26,13 +26,17 @@ Abort::~Abort() {
}
bool Abort::Execute(int request_id) {
- scoped_ptr<base::DictionaryValue> values(new base::DictionaryValue);
- values->SetInteger("operationRequestId", operation_request_id_);
+ using extensions::api::file_system_provider::AbortRequestedOptions;
+
+ AbortRequestedOptions options;
+ options.file_system_id = file_system_info_.file_system_id();
+ options.request_id = request_id;
+ options.operation_request_id = operation_request_id_;
return SendEvent(
request_id,
extensions::api::file_system_provider::OnAbortRequested::kEventName,
- values.Pass());
+ extensions::api::file_system_provider::OnAbortRequested::Create(options));
}
void Abort::OnSuccess(int /* request_id */,
« no previous file with comments | « no previous file | chrome/browser/chromeos/file_system_provider/operations/abort_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698