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

Unified Diff: mojo/application/public/cpp/application_impl.h

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/application/public/cpp/application_connection.h ('k') | mojo/application/public/cpp/connect.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/application/public/cpp/application_impl.h
diff --git a/mojo/application/public/cpp/application_impl.h b/mojo/application/public/cpp/application_impl.h
index a6e962c45b3d3dad519f11dda84544284dfe4f43..3081990ec135d13cabdde94e8b4ae83f3fd1ae74 100644
--- a/mojo/application/public/cpp/application_impl.h
+++ b/mojo/application/public/cpp/application_impl.h
@@ -5,6 +5,7 @@
#ifndef MOJO_APPLICATION_PUBLIC_CPP_APPLICATION_IMPL_H_
#define MOJO_APPLICATION_PUBLIC_CPP_APPLICATION_IMPL_H_
+#include <utility>
#include <vector>
#include "base/macros.h"
@@ -66,11 +67,9 @@ class ApplicationImpl : public Application {
explicit ConnectParams(URLRequestPtr request);
~ConnectParams();
- URLRequestPtr TakeRequest() { return request_.Pass(); }
- CapabilityFilterPtr TakeFilter() { return filter_.Pass(); }
- void set_filter(CapabilityFilterPtr filter) {
- filter_ = filter.Pass();
- }
+ URLRequestPtr TakeRequest() { return std::move(request_); }
+ CapabilityFilterPtr TakeFilter() { return std::move(filter_); }
+ void set_filter(CapabilityFilterPtr filter) { filter_ = std::move(filter); }
private:
URLRequestPtr request_;
« no previous file with comments | « mojo/application/public/cpp/application_connection.h ('k') | mojo/application/public/cpp/connect.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698