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

Unified Diff: mojo/shell/connect_util.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.h ('k') | mojo/shell/shell_application_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/connect_util.cc
diff --git a/mojo/shell/connect_util.cc b/mojo/shell/connect_util.cc
index 4cdb1dac861fbc495674bc8e08dfdc7b145f5bd9..f9dc2b2fa8cc6e8c0f22e436698d3cbfa0d3417b 100644
--- a/mojo/shell/connect_util.cc
+++ b/mojo/shell/connect_util.cc
@@ -4,6 +4,8 @@
#include "mojo/shell/connect_util.h"
+#include <utility>
+
#include "mojo/shell/application_manager.h"
#include "mojo/shell/capability_filter.h"
#include "mojo/shell/connect_to_application_params.h"
@@ -20,10 +22,10 @@ ScopedMessagePipeHandle ConnectToServiceByName(
params->SetTarget(Identity(application_url, std::string(),
GetPermissiveCapabilityFilter()));
params->set_services(GetProxy(&services));
- application_manager->ConnectToApplication(params.Pass());
+ application_manager->ConnectToApplication(std::move(params));
MessagePipe pipe;
- services->ConnectToService(interface_name, pipe.handle1.Pass());
- return pipe.handle0.Pass();
+ services->ConnectToService(interface_name, std::move(pipe.handle1));
+ return std::move(pipe.handle0);
}
} // namespace shell
« no previous file with comments | « mojo/shell/connect_util.h ('k') | mojo/shell/shell_application_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698