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 653539f33e80be9c0637cd9b0fab027a0bfffa81..79307a4700eb164296d48478c1adaa37ac161351 100644 |
--- a/chrome/browser/chromeos/login/quick_unlock/quick_unlock_utils.cc |
+++ b/chrome/browser/chromeos/login/quick_unlock/quick_unlock_utils.cc |
@@ -36,6 +36,8 @@ void RegisterQuickUnlockProfilePrefs(PrefRegistrySimple* registry) { |
// 0 indicates no maximum length for the pin. |
registry->RegisterIntegerPref(prefs::kPinUnlockMaximumLength, 0); |
registry->RegisterBooleanPref(prefs::kPinUnlockWeakPinsAllowed, true); |
+ |
+ registry->RegisterBooleanPref(prefs::kEnableQuickUnlockFingerprint, false); |
} |
bool IsPinUnlockEnabled(PrefService* pref_service) { |
@@ -64,6 +66,11 @@ bool IsPinUnlockEnabled(PrefService* pref_service) { |
return base::FeatureList::IsEnabled(features::kQuickUnlockPin); |
} |
+bool IsFingerprintUnlockEnabled() { |
+ // Enable fingerprint unlock only if the switch is present. |
+ return base::FeatureList::IsEnabled(features::kQuickUnlockFingerprint); |
+} |
+ |
void EnableQuickUnlockForTesting() { |
enable_for_testing_ = true; |
} |