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

Unified Diff: components/proximity_auth/cryptauth/cryptauth_enrollment_manager.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_enrollment_manager.cc
diff --git a/components/proximity_auth/cryptauth/cryptauth_enrollment_manager.cc b/components/proximity_auth/cryptauth/cryptauth_enrollment_manager.cc
index 026b42a12a4cf34c66fd2636144b0891812cc80d..22d97ecfe3209a24439d3aba2318afb58e23fcce 100644
--- a/components/proximity_auth/cryptauth/cryptauth_enrollment_manager.cc
+++ b/components/proximity_auth/cryptauth/cryptauth_enrollment_manager.cc
@@ -4,6 +4,8 @@
#include "components/proximity_auth/cryptauth/cryptauth_enrollment_manager.h"
+#include <utility>
+
#include "base/base64url.h"
#include "base/prefs/pref_registry_simple.h"
#include "base/prefs/pref_service.h"
@@ -48,9 +50,9 @@ CryptAuthEnrollmentManager::CryptAuthEnrollmentManager(
const cryptauth::GcmDeviceInfo& device_info,
CryptAuthGCMManager* gcm_manager,
PrefService* pref_service)
- : clock_(clock.Pass()),
- enroller_factory_(enroller_factory.Pass()),
- secure_message_delegate_(secure_message_delegate.Pass()),
+ : clock_(std::move(clock)),
+ enroller_factory_(std::move(enroller_factory)),
+ secure_message_delegate_(std::move(secure_message_delegate)),
device_info_(device_info),
gcm_manager_(gcm_manager),
pref_service_(pref_service),
@@ -228,7 +230,7 @@ void CryptAuthEnrollmentManager::OnSyncRequested(
scoped_ptr<SyncScheduler::SyncRequest> sync_request) {
FOR_EACH_OBSERVER(Observer, observers_, OnEnrollmentStarted());
- sync_request_ = sync_request.Pass();
+ sync_request_ = std::move(sync_request);
if (gcm_manager_->GetRegistrationId().empty() ||
pref_service_->GetInteger(prefs::kCryptAuthEnrollmentReason) ==
cryptauth::INVOCATION_REASON_MANUAL) {

Powered by Google App Engine
This is Rietveld 408576698