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

Unified Diff: content/child/navigator_connect/service_port_dispatcher_impl.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
« no previous file with comments | « content/child/mojo/type_converters.h ('k') | content/child/navigator_connect/service_port_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/navigator_connect/service_port_dispatcher_impl.cc
diff --git a/content/child/navigator_connect/service_port_dispatcher_impl.cc b/content/child/navigator_connect/service_port_dispatcher_impl.cc
index 1e703995d5bf6ecf488f1197afcdc912f0b75558..bc002a99c340f1ad0f988725211cf28b4fa1dd9e 100644
--- a/content/child/navigator_connect/service_port_dispatcher_impl.cc
+++ b/content/child/navigator_connect/service_port_dispatcher_impl.cc
@@ -4,6 +4,8 @@
#include "content/child/navigator_connect/service_port_dispatcher_impl.h"
+#include <utility>
+
#include "base/trace_event/trace_event.h"
#include "mojo/common/common_type_converters.h"
#include "mojo/common/url_type_converters.h"
@@ -42,7 +44,7 @@ class WebConnectCallbacksImpl
void ServicePortDispatcherImpl::Create(
base::WeakPtr<blink::WebServiceWorkerContextProxy> proxy,
mojo::InterfaceRequest<ServicePortDispatcher> request) {
- new ServicePortDispatcherImpl(proxy, request.Pass());
+ new ServicePortDispatcherImpl(proxy, std::move(request));
}
ServicePortDispatcherImpl::~ServicePortDispatcherImpl() {
@@ -52,7 +54,7 @@ ServicePortDispatcherImpl::~ServicePortDispatcherImpl() {
ServicePortDispatcherImpl::ServicePortDispatcherImpl(
base::WeakPtr<blink::WebServiceWorkerContextProxy> proxy,
mojo::InterfaceRequest<ServicePortDispatcher> request)
- : binding_(this, request.Pass()), proxy_(proxy) {
+ : binding_(this, std::move(request)), proxy_(proxy) {
WorkerThread::AddObserver(this);
}
« no previous file with comments | « content/child/mojo/type_converters.h ('k') | content/child/navigator_connect/service_port_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698