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

Unified Diff: content/browser/navigator_connect/service_port_service_impl.cc

Issue 1545243002: Convert Pass()→std::move() in //content/browser (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/browser/navigator_connect/service_port_service_impl.cc
diff --git a/content/browser/navigator_connect/service_port_service_impl.cc b/content/browser/navigator_connect/service_port_service_impl.cc
index 6b57df5ca8a2567c2b0309c85f2f7ed77bb0fb72..310c304ab3e09e057c44550b91980935f114f5a5 100644
--- a/content/browser/navigator_connect/service_port_service_impl.cc
+++ b/content/browser/navigator_connect/service_port_service_impl.cc
@@ -4,6 +4,8 @@
#include "content/browser/navigator_connect/service_port_service_impl.h"
+#include <utility>
+
#include "content/browser/message_port_message_filter.h"
#include "content/browser/message_port_service.h"
#include "content/browser/navigator_connect/navigator_connect_context_impl.h"
@@ -65,14 +67,14 @@ void ServicePortServiceImpl::CreateOnIOThread(
mojo::InterfaceRequest<ServicePortService> request) {
DCHECK_CURRENTLY_ON(BrowserThread::IO);
new ServicePortServiceImpl(navigator_connect_context,
- message_port_message_filter, request.Pass());
+ message_port_message_filter, std::move(request));
}
ServicePortServiceImpl::ServicePortServiceImpl(
const scoped_refptr<NavigatorConnectContextImpl>& navigator_connect_context,
const scoped_refptr<MessagePortMessageFilter>& message_port_message_filter,
mojo::InterfaceRequest<ServicePortService> request)
- : binding_(this, request.Pass()),
+ : binding_(this, std::move(request)),
navigator_connect_context_(navigator_connect_context),
message_port_message_filter_(message_port_message_filter),
weak_ptr_factory_(this) {
@@ -82,7 +84,7 @@ ServicePortServiceImpl::ServicePortServiceImpl(
void ServicePortServiceImpl::SetClient(ServicePortServiceClientPtr client) {
DCHECK(!client_.get());
// TODO(mek): Set ErrorHandler to listen for errors.
- client_ = client.Pass();
+ client_ = std::move(client);
}
void ServicePortServiceImpl::Connect(const mojo::String& target_url,
« no previous file with comments | « content/browser/mojo/renderer_capability_filter.cc ('k') | content/browser/permissions/permission_service_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698