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

Unified Diff: mojo/application/public/cpp/lib/service_provider_impl.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_provider_impl.cc
diff --git a/mojo/application/public/cpp/lib/service_provider_impl.cc b/mojo/application/public/cpp/lib/service_provider_impl.cc
index 6a9282c418eb57dbe25dc84447973d80ae5e5140..03e57efbfb139dbfbe00632af00070ff0f765473 100644
--- a/mojo/application/public/cpp/lib/service_provider_impl.cc
+++ b/mojo/application/public/cpp/lib/service_provider_impl.cc
@@ -2,9 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "mojo/application/public/cpp/service_provider_impl.h"
+#include <utility>
#include "mojo/application/public/cpp/service_connector.h"
+#include "mojo/application/public/cpp/service_provider_impl.h"
#include "mojo/public/cpp/environment/logging.h"
namespace mojo {
@@ -14,14 +15,13 @@ ServiceProviderImpl::ServiceProviderImpl() : binding_(this) {
ServiceProviderImpl::ServiceProviderImpl(
InterfaceRequest<ServiceProvider> request)
- : binding_(this, request.Pass()) {
-}
+ : binding_(this, std::move(request)) {}
ServiceProviderImpl::~ServiceProviderImpl() {
}
void ServiceProviderImpl::Bind(InterfaceRequest<ServiceProvider> request) {
- binding_.Bind(request.Pass());
+ binding_.Bind(std::move(request));
}
void ServiceProviderImpl::ConnectToService(
@@ -30,7 +30,7 @@ void ServiceProviderImpl::ConnectToService(
// TODO(beng): perhaps take app connection thru ctor so that we can pass
// ApplicationConnection through?
service_connector_registry_.ConnectToService(nullptr, service_name,
- client_handle.Pass());
+ std::move(client_handle));
}
void ServiceProviderImpl::SetServiceConnectorForName(
« no previous file with comments | « mojo/application/public/cpp/lib/service_connector_registry.cc ('k') | mojo/application/public/cpp/lib/service_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698