Chromium Code Reviews| Index: chrome/browser/profiles/profile.cc |
| diff --git a/chrome/browser/profiles/profile.cc b/chrome/browser/profiles/profile.cc |
| index 0b9b30c12714e4653136acbcb2bbb0826cc08118..710f559e6a682c5840887f25be07a812bde80884 100644 |
| --- a/chrome/browser/profiles/profile.cc |
| +++ b/chrome/browser/profiles/profile.cc |
| @@ -28,6 +28,7 @@ |
| #if defined(OS_CHROMEOS) |
| #include "base/command_line.h" |
| +#include "chrome/browser/chromeos/login/quick_unlock/quick_unlock_utils.h" |
| #include "chrome/common/chrome_switches.h" |
| #include "chromeos/chromeos_switches.h" |
| #endif |
| @@ -172,6 +173,14 @@ void Profile::RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) { |
| #if defined(OS_CHROMEOS) |
| registry->RegisterBooleanPref(prefs::kAllowScreenLock, true); |
| + |
| + base::ListValue screen_unlock_whitelist_default; |
|
jdufault
2016/10/27 19:40:04
Is this the best location to register these prefs?
jdufault
2016/10/27 19:40:04
screen_unlock_whitelist_default => quick_unlock_de
sammiequon
2016/10/27 23:54:43
Done.
sammiequon
2016/10/27 23:54:43
Done.
|
| + screen_unlock_whitelist_default.AppendString("password"); |
|
jdufault
2016/10/27 19:40:04
Remove password
sammiequon
2016/10/27 23:54:43
Done.
|
| + registry->RegisterListPref(prefs::kQuickUnlockModeWhitelist, |
| + screen_unlock_whitelist_default.DeepCopy()); |
| + registry->RegisterIntegerPref( |
| + prefs::kQuickUnlockTimeout, |
| + static_cast<int>(chromeos::PasswordConfirmationFrequency::DAY)); |
| #endif |
| } |