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

Unified Diff: mojo/shell/connect_util.h

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_to_application_params.cc ('k') | mojo/shell/connect_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/connect_util.h
diff --git a/mojo/shell/connect_util.h b/mojo/shell/connect_util.h
index 8c36b3d37af8ab782cac6e1b3f00a9a372bef8df..14ca4450786c7f9847fc22dbdf5bf76f75bf6367 100644
--- a/mojo/shell/connect_util.h
+++ b/mojo/shell/connect_util.h
@@ -5,6 +5,8 @@
#ifndef MOJO_SHELL_CONNECT_UTIL_H_
#define MOJO_SHELL_CONNECT_UTIL_H_
+#include <utility>
+
#include "mojo/public/cpp/bindings/interface_ptr.h"
#include "mojo/public/cpp/system/handle.h"
@@ -30,7 +32,7 @@ inline void ConnectToService(ApplicationManager* application_manager,
ScopedMessagePipeHandle service_handle =
ConnectToServiceByName(application_manager, application_url,
Interface::Name_);
- ptr->Bind(InterfacePtrInfo<Interface>(service_handle.Pass(), 0u));
+ ptr->Bind(InterfacePtrInfo<Interface>(std::move(service_handle), 0u));
}
} // namespace shell
« no previous file with comments | « mojo/shell/connect_to_application_params.cc ('k') | mojo/shell/connect_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698