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

Unified Diff: chrome/browser/chromeos/login/quick_unlock/quick_unlock_utils.cc

Issue 2374303002: cros: Added a new function to quick unlock api for checking unfinished pins. (Closed)
Patch Set: Rebased. Created 4 years, 1 month 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/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..275c4949bad8ca302e14aaedf3f8f0915a14d31f 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,12 @@ void RegisterQuickUnlockProfilePrefs(PrefRegistrySimple* registry) {
registry->RegisterIntegerPref(
prefs::kQuickUnlockTimeout,
static_cast<int>(QuickUnlockPasswordConfirmationFrequency::DAY));
+
+ // Preferences related the lock screen pin unlock.
+ registry->RegisterIntegerPref(prefs::kPinUnlockMinimumLength, 4);
+ // 0 indicates no maximum length for the pin.
+ registry->RegisterIntegerPref(prefs::kPinUnlockMaximumLength, 0);
+ registry->RegisterBooleanPref(prefs::kPinUnlockAllowWeakPins, true);
}
bool IsPinUnlockEnabled(PrefService* pref_service) {

Powered by Google App Engine
This is Rietveld 408576698