| Index: chrome/browser/extensions/api/terminal/terminal_private_api.cc
|
| diff --git a/chrome/browser/extensions/api/terminal/terminal_private_api.cc b/chrome/browser/extensions/api/terminal/terminal_private_api.cc
|
| index 1d0d718338ef20ef9aa21628572774b68db0877b..e2de983268eaad70e94f2ca72b6e754ce2e087e9 100644
|
| --- a/chrome/browser/extensions/api/terminal/terminal_private_api.cc
|
| +++ b/chrome/browser/extensions/api/terminal/terminal_private_api.cc
|
| @@ -50,18 +50,15 @@ void NotifyProcessOutput(Profile* profile,
|
| return;
|
| }
|
|
|
| - base::ListValue args;
|
| - args.Append(new base::FundamentalValue(pid));
|
| - args.Append(new base::StringValue(output_type));
|
| - args.Append(new base::StringValue(output));
|
| -
|
| - std::string args_json;
|
| - base::JSONWriter::Write(&args, &args_json);
|
| + scoped_ptr<base::ListValue> args(new base::ListValue());
|
| + args->Append(new base::FundamentalValue(pid));
|
| + args->Append(new base::StringValue(output_type));
|
| + args->Append(new base::StringValue(output));
|
|
|
| if (profile && profile->GetExtensionEventRouter()) {
|
| profile->GetExtensionEventRouter()->DispatchEventToExtension(
|
| extension_id, extensions::event_names::kOnTerminalProcessOutput,
|
| - args_json, NULL, GURL());
|
| + args.Pass(), NULL, GURL());
|
| }
|
| }
|
|
|
|
|