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

Unified Diff: chrome/browser/signin/easy_unlock_service_regular.cc

Issue 1551503002: Convert Pass()→std::move() in //chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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: chrome/browser/signin/easy_unlock_service_regular.cc
diff --git a/chrome/browser/signin/easy_unlock_service_regular.cc b/chrome/browser/signin/easy_unlock_service_regular.cc
index 8a290da9a06ad8389b63e1db44222760d2570b87..6e3e4664b67e9bbba8aecd0454d3ede424751414 100644
--- a/chrome/browser/signin/easy_unlock_service_regular.cc
+++ b/chrome/browser/signin/easy_unlock_service_regular.cc
@@ -5,6 +5,7 @@
#include "chrome/browser/signin/easy_unlock_service_regular.h"
#include <stdint.h>
+#include <utility>
#include "base/base64url.h"
#include "base/bind.h"
@@ -399,9 +400,9 @@ void EasyUnlockServiceRegular::StartAutoPairing(
scoped_ptr<extensions::Event> event(new extensions::Event(
extensions::events::EASY_UNLOCK_PRIVATE_ON_START_AUTO_PAIRING,
extensions::api::easy_unlock_private::OnStartAutoPairing::kEventName,
- args.Pass()));
+ std::move(args)));
extensions::EventRouter::Get(profile())->DispatchEventWithLazyListener(
- extension_misc::kEasyUnlockAppId, event.Pass());
+ extension_misc::kEasyUnlockAppId, std::move(event));
}
void EasyUnlockServiceRegular::SetAutoPairingResult(
@@ -595,7 +596,7 @@ void EasyUnlockServiceRegular::SyncProfilePrefsToLocalState() {
DictionaryPrefUpdate update(local_state,
prefs::kEasyUnlockLocalStateUserPrefs);
update->SetWithoutPathExpansion(GetAccountId().GetUserEmail(),
- user_prefs_dict.Pass());
+ std::move(user_prefs_dict));
}
cryptauth::GcmDeviceInfo EasyUnlockServiceRegular::GetGcmDeviceInfo() {

Powered by Google App Engine
This is Rietveld 408576698