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

Unified Diff: content/common/mojo/mojo_shell_connection_impl.cc

Issue 1544293002: Convert Pass()→std::move() in //content (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 | « content/common/mojo/channel_init.cc ('k') | content/common/mojo/service_registry_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/mojo/mojo_shell_connection_impl.cc
diff --git a/content/common/mojo/mojo_shell_connection_impl.cc b/content/common/mojo/mojo_shell_connection_impl.cc
index 3c0714d2027f918224e4fbc4c19da46658632249..0c6a3df1a76cf7cf46a66b199c3fd1c870c0df5a 100644
--- a/content/common/mojo/mojo_shell_connection_impl.cc
+++ b/content/common/mojo/mojo_shell_connection_impl.cc
@@ -4,6 +4,8 @@
#include "content/common/mojo/mojo_shell_connection_impl.h"
+#include <utility>
+
#include "base/command_line.h"
#include "base/lazy_instance.h"
#include "base/stl_util.h"
@@ -52,7 +54,7 @@ void MojoShellConnectionImpl::BindToMessagePipe(
mojo::ScopedMessagePipeHandle handle) {
if (initialized_)
return;
- WaitForShell(handle.Pass());
+ WaitForShell(std::move(handle));
}
MojoShellConnectionImpl::MojoShellConnectionImpl() : initialized_(false) {}
@@ -64,9 +66,9 @@ void MojoShellConnectionImpl::WaitForShell(
mojo::ScopedMessagePipeHandle handle) {
mojo::InterfaceRequest<mojo::Application> application_request;
runner_connection_.reset(mojo::runner::RunnerConnection::ConnectToRunner(
- &application_request, handle.Pass()));
- application_impl_.reset(new mojo::ApplicationImpl(
- this, application_request.Pass()));
+ &application_request, std::move(handle)));
+ application_impl_.reset(
+ new mojo::ApplicationImpl(this, std::move(application_request)));
application_impl_->WaitForInitialize();
}
« no previous file with comments | « content/common/mojo/channel_init.cc ('k') | content/common/mojo/service_registry_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698