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

Unified Diff: mojo/package_manager/content_handler_connection.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/package_manager/content_handler_connection.cc
diff --git a/mojo/package_manager/content_handler_connection.cc b/mojo/package_manager/content_handler_connection.cc
index 8552f8933b24489fdde490230259f719ffc07a26..f3abeda36828549e05cce567609d8eb1425caa56 100644
--- a/mojo/package_manager/content_handler_connection.cc
+++ b/mojo/package_manager/content_handler_connection.cc
@@ -4,6 +4,8 @@
#include "mojo/package_manager/content_handler_connection.h"
+#include <utility>
+
#include "base/bind.h"
#include "base/memory/scoped_ptr.h"
#include "mojo/shell/application_manager.h"
@@ -31,12 +33,12 @@ ContentHandlerConnection::ContentHandlerConnection(
params->set_source(source);
params->SetTarget(identity_);
params->set_services(GetProxy(&services));
- manager->ConnectToApplication(params.Pass());
+ manager->ConnectToApplication(std::move(params));
MessagePipe pipe;
content_handler_.Bind(
- InterfacePtrInfo<ContentHandler>(pipe.handle0.Pass(), 0u));
- services->ConnectToService(ContentHandler::Name_, pipe.handle1.Pass());
+ InterfacePtrInfo<ContentHandler>(std::move(pipe.handle0), 0u));
+ services->ConnectToService(ContentHandler::Name_, std::move(pipe.handle1));
content_handler_.set_connection_error_handler(
[this]() { CloseConnection(); });
}
@@ -45,7 +47,7 @@ void ContentHandlerConnection::StartApplication(
InterfaceRequest<Application> request,
URLResponsePtr response) {
content_handler_->StartApplication(
- request.Pass(), response.Pass(),
+ std::move(request), std::move(response),
base::Bind(&ContentHandlerConnection::ApplicationDestructed,
base::Unretained(this)));
ref_count_++;
« no previous file with comments | « mojo/package_manager/capability_filter_content_handler_unittest.cc ('k') | mojo/package_manager/content_handler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698