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

Unified Diff: ipc/mojo/ipc_mojo_bootstrap.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_message_pipe_reader.cc ('k') | ipc/mojo/ipc_mojo_handle_attachment.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/mojo/ipc_mojo_bootstrap.cc
diff --git a/ipc/mojo/ipc_mojo_bootstrap.cc b/ipc/mojo/ipc_mojo_bootstrap.cc
index fe307d5297d2c66c48a7db019e47364fa83c7d86..d296675660577fe54e5e0156ee00338eea0bb79e 100644
--- a/ipc/mojo/ipc_mojo_bootstrap.cc
+++ b/ipc/mojo/ipc_mojo_bootstrap.cc
@@ -5,6 +5,7 @@
#include "ipc/mojo/ipc_mojo_bootstrap.h"
#include <stdint.h>
+#include <utility>
#include "base/logging.h"
#include "base/macros.h"
@@ -164,8 +165,8 @@ scoped_ptr<MojoBootstrap> MojoBootstrap::Create(ChannelHandle handle,
scoped_ptr<Channel> bootstrap_channel =
Channel::Create(handle, mode, self.get());
- self->Init(bootstrap_channel.Pass(), delegate);
- return self.Pass();
+ self->Init(std::move(bootstrap_channel), delegate);
+ return self;
}
MojoBootstrap::MojoBootstrap() : delegate_(NULL), state_(STATE_INITIALIZED) {
@@ -175,7 +176,7 @@ MojoBootstrap::~MojoBootstrap() {
}
void MojoBootstrap::Init(scoped_ptr<Channel> channel, Delegate* delegate) {
- channel_ = channel.Pass();
+ channel_ = std::move(channel);
delegate_ = delegate;
}
« no previous file with comments | « ipc/mojo/ipc_message_pipe_reader.cc ('k') | ipc/mojo/ipc_mojo_handle_attachment.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698