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

Unified Diff: content/child/navigator_connect/service_port_provider.cc

Issue 1544293002: Convert Pass()→std::move() in //content (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: content/child/navigator_connect/service_port_provider.cc
diff --git a/content/child/navigator_connect/service_port_provider.cc b/content/child/navigator_connect/service_port_provider.cc
index 4afcef9304daa016b99ed8b6c899df4141f5c96e..79bf8a5897bec357778b9865fa319aa1424f26f7 100644
--- a/content/child/navigator_connect/service_port_provider.cc
+++ b/content/child/navigator_connect/service_port_provider.cc
@@ -4,6 +4,8 @@
#include "content/child/navigator_connect/service_port_provider.h"
+#include <utility>
+
#include "base/lazy_instance.h"
#include "base/single_thread_task_runner.h"
#include "base/task_runner_util.h"
@@ -23,7 +25,7 @@ namespace {
void ConnectToServiceOnMainThread(
mojo::InterfaceRequest<ServicePortService> ptr) {
ChildThreadImpl::current()->service_registry()->ConnectToRemoteService(
- ptr.Pass());
+ std::move(ptr));
}
} // namespace
@@ -124,7 +126,7 @@ ServicePortServicePtr& ServicePortProvider::GetServicePortServicePtr() {
// Setup channel for browser to post events back to this class.
ServicePortServiceClientPtr client_ptr;
binding_.Bind(GetProxy(&client_ptr));
- service_port_service_->SetClient(client_ptr.Pass());
+ service_port_service_->SetClient(std::move(client_ptr));
}
return service_port_service_;
}
« no previous file with comments | « content/child/navigator_connect/service_port_dispatcher_impl.cc ('k') | content/child/permissions/permission_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698