| Index: mojo/public/cpp/bindings/lib/control_message_proxy.cc
|
| diff --git a/mojo/public/cpp/bindings/lib/control_message_proxy.cc b/mojo/public/cpp/bindings/lib/control_message_proxy.cc
|
| index 23de991309f140b13511d1d7892111e49361a2b6..d082b49fb31df5f7ce537aab476ffae74d918e52 100644
|
| --- a/mojo/public/cpp/bindings/lib/control_message_proxy.cc
|
| +++ b/mojo/public/cpp/bindings/lib/control_message_proxy.cc
|
| @@ -85,9 +85,10 @@ void SendRunMessage(MessageReceiverWithResponder* receiver,
|
| interface_control::internal::RunMessageParams_Data* params = nullptr;
|
| Serialize<interface_control::RunMessageParamsDataView>(
|
| params_ptr, builder.buffer(), ¶ms, &context);
|
| - MessageReceiver* responder = new RunResponseForwardToCallback(callback);
|
| - if (!receiver->AcceptWithResponder(builder.message(), responder))
|
| - delete responder;
|
| + std::unique_ptr<MessageReceiver> responder =
|
| + base::MakeUnique<RunResponseForwardToCallback>(callback);
|
| + ignore_result(
|
| + receiver->AcceptWithResponder(builder.message(), std::move(responder)));
|
| }
|
|
|
| Message ConstructRunOrClosePipeMessage(
|
| @@ -115,8 +116,7 @@ void SendRunOrClosePipeMessage(
|
| interface_control::RunOrClosePipeInputPtr input_ptr) {
|
| Message message(ConstructRunOrClosePipeMessage(std::move(input_ptr)));
|
|
|
| - bool ok = receiver->Accept(&message);
|
| - ALLOW_UNUSED_LOCAL(ok);
|
| + ignore_result(receiver->Accept(&message));
|
| }
|
|
|
| void RunVersionCallback(
|
|
|