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

Unified Diff: chrome/browser/profiles/profile.cc

Issue 2374303002: cros: Added a new function to quick unlock api for checking unfinished pins. (Closed)
Patch Set: Split up problems into warnings and errors. 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/profiles/profile.cc
diff --git a/chrome/browser/profiles/profile.cc b/chrome/browser/profiles/profile.cc
index 7dd1abadfb5c98722e6ee59c376b500e5ef1dc93..c7b0a60e0479a379c296fc2414718e5722500c8f 100644
--- a/chrome/browser/profiles/profile.cc
+++ b/chrome/browser/profiles/profile.cc
@@ -175,6 +175,12 @@ void Profile::RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) {
#if defined(OS_CHROMEOS)
registry->RegisterBooleanPref(prefs::kAllowScreenLock, true);
+
+ // 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);
#endif
}

Powered by Google App Engine
This is Rietveld 408576698