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

Unified Diff: chrome/browser/chromeos/file_system_provider/operations/operation.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
Index: chrome/browser/chromeos/file_system_provider/operations/operation.cc
diff --git a/chrome/browser/chromeos/file_system_provider/operations/operation.cc b/chrome/browser/chromeos/file_system_provider/operations/operation.cc
index 8e7a88cd61ab93381b1230a856c4154bc50e9244..dd35b465d29cff600de17db37dae4e54304b41ed 100644
--- a/chrome/browser/chromeos/file_system_provider/operations/operation.cc
+++ b/chrome/browser/chromeos/file_system_provider/operations/operation.cc
@@ -44,13 +44,7 @@ void Operation::SetDispatchEventImplForTesting(
bool Operation::SendEvent(int request_id,
const std::string& event_name,
- scoped_ptr<base::DictionaryValue> options) {
- options->SetString("fileSystemId", file_system_info_.file_system_id());
- options->SetInteger("requestId", request_id);
-
- scoped_ptr<base::ListValue> event_args(new base::ListValue);
- event_args->Append(options.release());
-
+ scoped_ptr<base::ListValue> event_args) {
return dispatch_event_impl_.Run(
make_scoped_ptr(new extensions::Event(event_name, event_args.Pass())));
}

Powered by Google App Engine
This is Rietveld 408576698