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

Unified Diff: ipc/mojo/ipc_message_pipe_reader.cc

Issue 1550693002: Global conversion of Pass()→std::move() on Linux (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
« no previous file with comments | « ipc/mojo/ipc_channel_mojo_unittest.cc ('k') | ipc/mojo/ipc_mojo_bootstrap.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
« no previous file with comments | « ipc/mojo/ipc_channel_mojo_unittest.cc ('k') | ipc/mojo/ipc_mojo_bootstrap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698