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

Unified Diff: mojo/application/public/cpp/lib/service_connector_registry.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
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));
}
}

Powered by Google App Engine
This is Rietveld 408576698