Index: ipc/mojo/ipc_message_pipe_reader.cc |
diff --git a/ipc/mojo/ipc_message_pipe_reader.cc b/ipc/mojo/ipc_message_pipe_reader.cc |
index 11aab8d6155bf27aaf24bc0b1ac9f9775a19f1ff..19d9e303a6d437c89e312e5b7c68ab462bd3e937 100644 |
--- a/ipc/mojo/ipc_message_pipe_reader.cc |
+++ b/ipc/mojo/ipc_message_pipe_reader.cc |
@@ -5,6 +5,7 @@ |
#include "ipc/mojo/ipc_message_pipe_reader.h" |
#include <stdint.h> |
+#include <utility> |
#include "base/bind.h" |
#include "base/bind_helpers.h" |
@@ -20,14 +21,12 @@ namespace internal { |
MessagePipeReader::MessagePipeReader(mojo::ScopedMessagePipeHandle handle, |
MessagePipeReader::Delegate* delegate) |
- : pipe_(handle.Pass()), |
+ : pipe_(std::move(handle)), |
handle_copy_(pipe_.get().value()), |
delegate_(delegate), |
- async_waiter_( |
- new AsyncHandleWaiter(base::Bind(&MessagePipeReader::PipeIsReady, |
- base::Unretained(this)))), |
- pending_send_error_(MOJO_RESULT_OK) { |
-} |
+ async_waiter_(new AsyncHandleWaiter( |
+ base::Bind(&MessagePipeReader::PipeIsReady, base::Unretained(this)))), |
+ pending_send_error_(MOJO_RESULT_OK) {} |
MessagePipeReader::~MessagePipeReader() { |
DCHECK(thread_checker_.CalledOnValidThread()); |