Index: mojo/public/cpp/bindings/lib/control_message_handler.cc |
diff --git a/mojo/public/cpp/bindings/lib/control_message_handler.cc b/mojo/public/cpp/bindings/lib/control_message_handler.cc |
index aec2292cc9033835dc12057e6a927fd07146b70a..e5c11e13d45f8338f83994d8c340ce6fc3ec4cd5 100644 |
--- a/mojo/public/cpp/bindings/lib/control_message_handler.cc |
+++ b/mojo/public/cpp/bindings/lib/control_message_handler.cc |
@@ -6,6 +6,7 @@ |
#include <stddef.h> |
#include <stdint.h> |
+#include <utility> |
#include "mojo/public/cpp/bindings/lib/message_builder.h" |
#include "mojo/public/cpp/environment/logging.h" |
@@ -58,7 +59,8 @@ bool ControlMessageHandler::Run(Message* message, |
ResponseMessageBuilder builder(kRunMessageId, size, message->request_id()); |
RunResponseMessageParams_Data* response_params = nullptr; |
- Serialize_(response_params_ptr.Pass(), builder.buffer(), &response_params); |
+ Serialize_(std::move(response_params_ptr), builder.buffer(), |
+ &response_params); |
response_params->EncodePointersAndHandles( |
builder.message()->mutable_handles()); |
bool ok = responder->Accept(builder.message()); |