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

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

Issue 2561683002: Update CryptAuthDeviceManager to store all synced devices instead of only unlock keys. (Closed)
Patch Set: tengs@ comments. Created 4 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 4ef324176a78e996d8598fcbb984516359d78c10..34e099c76a3b64a10026d0f81a90e93ac47d8a8a 100644
--- a/chrome/browser/signin/easy_unlock_service_regular.cc
+++ b/chrome/browser/signin/easy_unlock_service_regular.cc
@@ -103,13 +103,13 @@ EasyUnlockServiceRegular::GetProximityAuthPrefManager() {
}
void EasyUnlockServiceRegular::LoadRemoteDevices() {
- if (device_manager_->unlock_keys().empty()) {
+ if (device_manager_->GetUnlockKeys().empty()) {
SetProximityAuthDevices(GetAccountId(), cryptauth::RemoteDeviceList());
return;
}
remote_device_loader_.reset(new proximity_auth::RemoteDeviceLoader(
- device_manager_->unlock_keys(), proximity_auth_client()->GetAccountId(),
+ device_manager_->GetUnlockKeys(), proximity_auth_client()->GetAccountId(),
enrollment_manager_->GetUserPrivateKey(),
proximity_auth_client()->CreateSecureMessageDelegate(),
pref_manager_.get()));
@@ -317,7 +317,7 @@ void EasyUnlockServiceRegular::SetRemoteBleDevices(
return;
}
const std::vector<cryptauth::ExternalDeviceInfo> unlock_keys =
- GetCryptAuthDeviceManager()->unlock_keys();
+ GetCryptAuthDeviceManager()->GetUnlockKeys();
auto iterator = std::find_if(
unlock_keys.begin(), unlock_keys.end(),
[&public_key](const cryptauth::ExternalDeviceInfo& unlock_key) {

Powered by Google App Engine
This is Rietveld 408576698