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 |