Index: mojo/application/public/cpp/application_connection.h |
diff --git a/mojo/application/public/cpp/application_connection.h b/mojo/application/public/cpp/application_connection.h |
index cb42e179e89c6460cf9e0363fe355630168c03b9..61730d24d31e9ef2ddbb9c3f9416d5cfd177413e 100644 |
--- a/mojo/application/public/cpp/application_connection.h |
+++ b/mojo/application/public/cpp/application_connection.h |
@@ -6,6 +6,7 @@ |
#define MOJO_APPLICATION_PUBLIC_CPP_APPLICATION_CONNECTION_H_ |
#include <string> |
+#include <utility> |
#include "base/memory/weak_ptr.h" |
#include "mojo/application/public/cpp/lib/interface_factory_connector.h" |
@@ -82,8 +83,8 @@ class ApplicationConnection { |
void ConnectToService(InterfacePtr<Interface>* ptr) { |
if (ServiceProvider* sp = GetServiceProvider()) { |
MessagePipe pipe; |
- ptr->Bind(InterfacePtrInfo<Interface>(pipe.handle0.Pass(), 0u)); |
- sp->ConnectToService(Interface::Name_, pipe.handle1.Pass()); |
+ ptr->Bind(InterfacePtrInfo<Interface>(std::move(pipe.handle0), 0u)); |
+ sp->ConnectToService(Interface::Name_, std::move(pipe.handle1)); |
} |
} |