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

Unified Diff: mojo/public/cpp/bindings/associated_interface_ptr.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
Index: mojo/public/cpp/bindings/associated_interface_ptr.h
diff --git a/mojo/public/cpp/bindings/associated_interface_ptr.h b/mojo/public/cpp/bindings/associated_interface_ptr.h
index 1e7fa61e67558eed601729363c302fccb576f3ee..ba93e4e7fc771b7fdcd86a7fc595a0ccc82c8b81 100644
--- a/mojo/public/cpp/bindings/associated_interface_ptr.h
+++ b/mojo/public/cpp/bindings/associated_interface_ptr.h
@@ -6,6 +6,7 @@
#define MOJO_PUBLIC_CPP_BINDINGS_ASSOCIATED_INTERFACE_PTR_H_
#include <stdint.h>
+#include <utility>
#include "base/logging.h"
#include "base/macros.h"
@@ -66,7 +67,7 @@ class AssociatedInterfacePtr {
"at the other side of the message pipe.";
if (info.is_valid() && is_local)
- internal_state_.Bind(info.Pass());
+ internal_state_.Bind(std::move(info));
}
bool is_bound() const { return internal_state_.is_bound(); }
@@ -185,8 +186,8 @@ AssociatedInterfaceRequest<typename Interface::GenericInterface> GetProxy(
group->CreateAssociatedInterface(AssociatedGroup::WILL_PASS_REQUEST,
&ptr_info, &request);
- ptr->Bind(ptr_info.Pass());
- return request.Pass();
+ ptr->Bind(std::move(ptr_info));
+ return std::move(request);
}
} // namespace mojo
« no previous file with comments | « mojo/public/cpp/bindings/associated_group.h ('k') | mojo/public/cpp/bindings/associated_interface_ptr_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698