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

Unified Diff: mojo/shell/shell_application_delegate.cc

Issue 1538823002: Convert Pass()→std::move() in mojo/ (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 | « mojo/shell/connect_util.cc ('k') | mojo/shell/shell_application_loader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/shell_application_delegate.cc
diff --git a/mojo/shell/shell_application_delegate.cc b/mojo/shell/shell_application_delegate.cc
index 43c2dda8df04c2e247c39f95b7113a3c185b073b..5c785a193bf6bbf6f24e1c481400959264eb5141 100644
--- a/mojo/shell/shell_application_delegate.cc
+++ b/mojo/shell/shell_application_delegate.cc
@@ -4,6 +4,8 @@
#include "mojo/shell/shell_application_delegate.h"
+#include <utility>
+
#include "base/process/process.h"
#include "mojo/application/public/cpp/application_connection.h"
#include "mojo/shell/application_manager.h"
@@ -27,14 +29,15 @@ bool ShellApplicationDelegate::ConfigureIncomingConnection(
void ShellApplicationDelegate::Create(
ApplicationConnection* connection,
InterfaceRequest<mojom::ApplicationManager> request) {
- bindings_.AddBinding(this, request.Pass());
+ bindings_.AddBinding(this, std::move(request));
}
void ShellApplicationDelegate::CreateInstanceForHandle(
ScopedHandle channel,
const String& url,
CapabilityFilterPtr filter) {
- manager_->CreateInstanceForHandle(channel.Pass(), GURL(url), filter.Pass());
+ manager_->CreateInstanceForHandle(std::move(channel), GURL(url),
+ std::move(filter));
}
void ShellApplicationDelegate::RegisterProcessWithBroker(
@@ -72,7 +75,7 @@ void ShellApplicationDelegate::RegisterProcessWithBroker(
MojoResult rv = embedder::PassWrappedPlatformHandle(
pipe.release().value(), &platform_pipe);
CHECK_EQ(rv, MOJO_RESULT_OK);
- embedder::ChildProcessLaunched(process.Handle(), platform_pipe.Pass());
+ embedder::ChildProcessLaunched(process.Handle(), std::move(platform_pipe));
}
void ShellApplicationDelegate::AddListener(
« no previous file with comments | « mojo/shell/connect_util.cc ('k') | mojo/shell/shell_application_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698