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

Unified Diff: mojo/public/cpp/bindings/associated_binding.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/array.h ('k') | mojo/public/cpp/bindings/associated_group.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/cpp/bindings/associated_binding.h
diff --git a/mojo/public/cpp/bindings/associated_binding.h b/mojo/public/cpp/bindings/associated_binding.h
index bf6d2f983bf6bd80d5f64592742721d1836cbbe0..be87df284851c936b7aebb711e8f9e36c1366f42 100644
--- a/mojo/public/cpp/bindings/associated_binding.h
+++ b/mojo/public/cpp/bindings/associated_binding.h
@@ -5,6 +5,8 @@
#ifndef MOJO_PUBLIC_CPP_BINDINGS_ASSOCIATED_BINDING_H_
#define MOJO_PUBLIC_CPP_BINDINGS_ASSOCIATED_BINDING_H_
+#include <utility>
+
#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "mojo/public/cpp/bindings/associated_group.h"
@@ -47,7 +49,7 @@ class AssociatedBinding {
AssociatedBinding(Interface* impl,
AssociatedInterfaceRequest<GenericInterface> request)
: AssociatedBinding(impl) {
- Bind(request.Pass());
+ Bind(std::move(request));
}
~AssociatedBinding() {}
@@ -79,7 +81,7 @@ class AssociatedBinding {
}
endpoint_client_.reset(new internal::InterfaceEndpointClient(
- handle.Pass(), &stub_,
+ std::move(handle), &stub_,
make_scoped_ptr(new typename Interface::RequestValidator_())));
endpoint_client_->set_connection_error_handler(
[this]() { connection_error_handler_.Run(); });
« no previous file with comments | « mojo/public/cpp/bindings/array.h ('k') | mojo/public/cpp/bindings/associated_group.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698