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

Unified Diff: mojo/public/cpp/bindings/associated_interface_request.h

Issue 1535943002: Convert Pass()→std::move() in //mojo/public/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Regenerate correctly 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/public/cpp/bindings/associated_interface_ptr_info.h ('k') | mojo/public/cpp/bindings/binding.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/cpp/bindings/associated_interface_request.h
diff --git a/mojo/public/cpp/bindings/associated_interface_request.h b/mojo/public/cpp/bindings/associated_interface_request.h
index 668d5fff4fb58c1c0e4922896d9756eb21d6f9ae..36cbe3eb48c0db45b29fe0117e63c2ffe9282b25 100644
--- a/mojo/public/cpp/bindings/associated_interface_request.h
+++ b/mojo/public/cpp/bindings/associated_interface_request.h
@@ -5,6 +5,8 @@
#ifndef MOJO_PUBLIC_CPP_BINDINGS_ASSOCIATED_INTERFACE_REQUEST_H_
#define MOJO_PUBLIC_CPP_BINDINGS_ASSOCIATED_INTERFACE_REQUEST_H_
+#include <utility>
+
#include "base/macros.h"
#include "mojo/public/cpp/bindings/lib/scoped_interface_endpoint_handle.h"
@@ -29,11 +31,11 @@ class AssociatedInterfaceRequest {
// Takes the interface endpoint handle from another
// AssociatedInterfaceRequest.
AssociatedInterfaceRequest(AssociatedInterfaceRequest&& other) {
- handle_ = other.handle_.Pass();
+ handle_ = std::move(other.handle_);
}
AssociatedInterfaceRequest& operator=(AssociatedInterfaceRequest&& other) {
if (this != &other)
- handle_ = other.handle_.Pass();
+ handle_ = std::move(other.handle_);
return *this;
}
@@ -65,7 +67,7 @@ class AssociatedInterfaceRequestHelper {
template <typename Interface>
static ScopedInterfaceEndpointHandle PassHandle(
AssociatedInterfaceRequest<Interface>* request) {
- return request->handle_.Pass();
+ return std::move(request->handle_);
}
template <typename Interface>
@@ -77,7 +79,7 @@ class AssociatedInterfaceRequestHelper {
template <typename Interface>
static void SetHandle(AssociatedInterfaceRequest<Interface>* request,
ScopedInterfaceEndpointHandle handle) {
- request->handle_ = handle.Pass();
+ request->handle_ = std::move(handle);
}
};
« no previous file with comments | « mojo/public/cpp/bindings/associated_interface_ptr_info.h ('k') | mojo/public/cpp/bindings/binding.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698