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

Unified Diff: components/proximity_auth/cryptauth/cryptauth_enroller_impl.cc

Issue 1548203002: Convert Pass()→std::move() in //components/[n-z]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix bad headers 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: components/proximity_auth/cryptauth/cryptauth_enroller_impl.cc
diff --git a/components/proximity_auth/cryptauth/cryptauth_enroller_impl.cc b/components/proximity_auth/cryptauth/cryptauth_enroller_impl.cc
index 025a345d732d7f4a6c0c9a772493384f3358d05a..393cfe0b29e179026ad34487d00bb5e9f5ba2b05 100644
--- a/components/proximity_auth/cryptauth/cryptauth_enroller_impl.cc
+++ b/components/proximity_auth/cryptauth/cryptauth_enroller_impl.cc
@@ -4,6 +4,8 @@
#include "components/proximity_auth/cryptauth/cryptauth_enroller_impl.h"
+#include <utility>
+
#include "base/bind.h"
#include "components/proximity_auth/cryptauth/cryptauth_client_impl.h"
#include "components/proximity_auth/cryptauth/cryptauth_enrollment_utils.h"
@@ -54,10 +56,9 @@ std::string CreateEnrollmentPublicMetadata() {
CryptAuthEnrollerImpl::CryptAuthEnrollerImpl(
scoped_ptr<CryptAuthClientFactory> client_factory,
scoped_ptr<SecureMessageDelegate> secure_message_delegate)
- : client_factory_(client_factory.Pass()),
- secure_message_delegate_(secure_message_delegate.Pass()),
- weak_ptr_factory_(this) {
-}
+ : client_factory_(std::move(client_factory)),
+ secure_message_delegate_(std::move(secure_message_delegate)),
+ weak_ptr_factory_(this) {}
CryptAuthEnrollerImpl::~CryptAuthEnrollerImpl() {
}

Powered by Google App Engine
This is Rietveld 408576698