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

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: 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/profiles/profile.cc
diff --git a/chrome/browser/profiles/profile.cc b/chrome/browser/profiles/profile.cc
index 281e922c1c647638c05708f343058c321806a74e..07125c241197c584a112f8b003d5b2e02e75f172 100644
--- a/chrome/browser/profiles/profile.cc
+++ b/chrome/browser/profiles/profile.cc
@@ -173,6 +173,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