| Index: chrome/browser/chromeos/login/quick_unlock/quick_unlock_utils.cc
|
| diff --git a/chrome/browser/chromeos/login/quick_unlock/quick_unlock_utils.cc b/chrome/browser/chromeos/login/quick_unlock/quick_unlock_utils.cc
|
| index 3beae8927a1fa80f5b903877df4f881b2266fdd4..1703e2e002d7529e439f8b399a04239877165a8f 100644
|
| --- a/chrome/browser/chromeos/login/quick_unlock/quick_unlock_utils.cc
|
| +++ b/chrome/browser/chromeos/login/quick_unlock/quick_unlock_utils.cc
|
| @@ -30,6 +30,7 @@ void RegisterQuickUnlockProfilePrefs(PrefRegistrySimple* registry) {
|
| registry->RegisterIntegerPref(
|
| prefs::kQuickUnlockTimeout,
|
| static_cast<int>(QuickUnlockPasswordConfirmationFrequency::DAY));
|
| + registry->RegisterBooleanPref(prefs::kEnableQuickUnlockFingerprint, false);
|
| }
|
|
|
| bool IsPinUnlockEnabled(PrefService* pref_service) {
|
| @@ -58,6 +59,14 @@ bool IsPinUnlockEnabled(PrefService* pref_service) {
|
| return base::FeatureList::IsEnabled(features::kQuickUnlockPin);
|
| }
|
|
|
| +bool IsFingerprintUnlockEnabled() {
|
| + // Enable fingerprint unlock only if the switch is present. For now,
|
| + // fingerprint unlock will not be seen if quick unlock switch is not present,
|
| + // so check that too.
|
| + return base::FeatureList::IsEnabled(features::kQuickUnlockPin) &&
|
| + base::FeatureList::IsEnabled(features::kQuickUnlockFingerprint);
|
| +}
|
| +
|
| void EnableQuickUnlockForTesting() {
|
| enable_for_testing_ = true;
|
| }
|
|
|