Index: mojo/application/public/cpp/lib/service_connector_registry.cc |
diff --git a/mojo/application/public/cpp/lib/service_connector_registry.cc b/mojo/application/public/cpp/lib/service_connector_registry.cc |
index 97c431685063985c134e56d4b8afecf1df0930a5..58f9fc7193b33f9e511f5f19845dde5c9189756e 100644 |
--- a/mojo/application/public/cpp/lib/service_connector_registry.cc |
+++ b/mojo/application/public/cpp/lib/service_connector_registry.cc |
@@ -4,6 +4,8 @@ |
#include "mojo/application/public/cpp/lib/service_connector_registry.h" |
+#include <utility> |
+ |
#include "mojo/application/public/cpp/service_connector.h" |
namespace mojo { |
@@ -46,12 +48,12 @@ void ServiceConnectorRegistry::ConnectToService( |
auto iter = name_to_service_connector_.find(interface_name); |
if (iter != name_to_service_connector_.end()) { |
iter->second->ConnectToService(application_connection, interface_name, |
- client_handle.Pass()); |
+ std::move(client_handle)); |
return; |
} |
if (service_connector_) { |
service_connector_->ConnectToService(application_connection, interface_name, |
- client_handle.Pass()); |
+ std::move(client_handle)); |
} |
} |