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

Unified Diff: mojo/shell/connect_to_application_params.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
« no previous file with comments | « mojo/shell/connect_to_application_params.h ('k') | mojo/shell/connect_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/connect_to_application_params.cc
diff --git a/mojo/shell/connect_to_application_params.cc b/mojo/shell/connect_to_application_params.cc
index bd0edc2313c7ece6ebe68ba05a97ca1f7e0f1e46..e631617b9323c5562f4688b76d64b63b3341837d 100644
--- a/mojo/shell/connect_to_application_params.cc
+++ b/mojo/shell/connect_to_application_params.cc
@@ -4,6 +4,8 @@
#include "mojo/shell/connect_to_application_params.h"
+#include <utility>
+
#include "mojo/shell/application_instance.h"
namespace mojo {
@@ -38,12 +40,12 @@ void ConnectToApplicationParams::SetTargetURLRequest(URLRequestPtr request) {
Identity target = request ? Identity(GURL(request->url), target_.qualifier(),
target_.filter())
: Identity();
- SetTargetURLRequest(request.Pass(), target);
+ SetTargetURLRequest(std::move(request), target);
}
void ConnectToApplicationParams::SetTargetURLRequest(URLRequestPtr request,
const Identity& target) {
- target_url_request_ = request.Pass();
+ target_url_request_ = std::move(request);
target_ = target;
}
« no previous file with comments | « mojo/shell/connect_to_application_params.h ('k') | mojo/shell/connect_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698