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

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

Issue 668213003: Reauthenticate the user before launching Smart Lock setup app. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months 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.cc
diff --git a/chrome/browser/signin/easy_unlock_service.cc b/chrome/browser/signin/easy_unlock_service.cc
index ad20ddedcad7e274d9e9b6aa8b1513db73d1cfc8..0cfa475c5900df140f6998ae0a1b69a3d85dc4d4 100644
--- a/chrome/browser/signin/easy_unlock_service.cc
+++ b/chrome/browser/signin/easy_unlock_service.cc
@@ -362,10 +362,6 @@ void EasyUnlockService::CheckCryptohomeKeysAndMaybeHardlock() {
return;
}
- // No need to compare if a change is already recorded.
- if (GetHardlockState() == EasyUnlockScreenlockStateHandler::PAIRING_CHANGED)
- return;
-
chromeos::EasyUnlockKeyManager* key_manager =
chromeos::UserSessionManager::GetInstance()->GetEasyUnlockKeyManager();
DCHECK(key_manager);
@@ -592,8 +588,12 @@ void EasyUnlockService::OnCryptohomeKeysFetchedForChecking(
for (const auto& device_key_data : key_data_list)
devices_in_cryptohome.insert(device_key_data.public_key);
- if (paired_devices != devices_in_cryptohome ||
- GetHardlockState() == EasyUnlockScreenlockStateHandler::NO_PAIRING) {
+ if (paired_devices == devices_in_cryptohome) {
tbarzic 2014/10/27 21:44:43 I don't think this is the right thing to do in gen
xiyuan 2014/10/28 20:38:03 For 1, maybe we should consider using psk instead
Tim Song 2014/10/31 17:57:37 For 1, I did as Xiyuan suggested and made the chec
tbarzic 2014/10/31 18:24:09 cryptohome keys are actually cleared on the next u
Tim Song 2014/11/01 03:16:52 Okay that makes sense. I changed the hardlock stat
+ if (GetHardlockState() != EasyUnlockScreenlockStateHandler::USER_HARDLOCK) {
+ SetHardlockStateForUser(user_id,
+ EasyUnlockScreenlockStateHandler::NO_HARDLOCK);
+ }
+ } else {
SetHardlockStateForUser(user_id,
EasyUnlockScreenlockStateHandler::PAIRING_CHANGED);
}

Powered by Google App Engine
This is Rietveld 408576698