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

Unified Diff: mojo/public/cpp/bindings/associated_group.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_binding.h ('k') | mojo/public/cpp/bindings/associated_interface_ptr.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/cpp/bindings/associated_group.h
diff --git a/mojo/public/cpp/bindings/associated_group.h b/mojo/public/cpp/bindings/associated_group.h
index 72aec3d9b520c4f224fb2979f542332b6a654d63..ea3b5a162659f5b2ad2ff60e595fe999975f525a 100644
--- a/mojo/public/cpp/bindings/associated_group.h
+++ b/mojo/public/cpp/bindings/associated_group.h
@@ -5,6 +5,8 @@
#ifndef MOJO_PUBLIC_CPP_BINDINGS_ASSOCIATED_GROUP_H_
#define MOJO_PUBLIC_CPP_BINDINGS_ASSOCIATED_GROUP_H_
+#include <utility>
+
#include "base/memory/ref_counted.h"
#include "mojo/public/cpp/bindings/associated_interface_ptr_info.h"
#include "mojo/public/cpp/bindings/associated_interface_request.h"
@@ -60,20 +62,20 @@ class AssociatedGroup {
if (config == WILL_PASS_PTR) {
internal::AssociatedInterfacePtrInfoHelper::SetHandle(ptr_info,
- remote.Pass());
+ std::move(remote));
// The implementation is local, therefore set the version according to
// the interface definition that this code is built against.
ptr_info->set_version(T::Version_);
internal::AssociatedInterfaceRequestHelper::SetHandle(request,
- local.Pass());
+ std::move(local));
} else {
internal::AssociatedInterfacePtrInfoHelper::SetHandle(ptr_info,
- local.Pass());
+ std::move(local));
// The implementation is remote, we don't know about its actual version
// yet.
ptr_info->set_version(0u);
internal::AssociatedInterfaceRequestHelper::SetHandle(request,
- remote.Pass());
+ std::move(remote));
}
}
« no previous file with comments | « mojo/public/cpp/bindings/associated_binding.h ('k') | mojo/public/cpp/bindings/associated_interface_ptr.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698