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

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

Issue 2387253002: cros: Added policies for screen unlock. (Closed)
Patch Set: Fixed patch set 5 errors. Created 4 years, 2 months 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 ce0ced0aaa74e079470e3a385011612f69a83128..49a7ea80698de5fc4c6fc4f3ca9a20385a920f5b 100644
--- a/chrome/browser/profiles/profile.cc
+++ b/chrome/browser/profiles/profile.cc
@@ -27,6 +27,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
@@ -171,6 +172,14 @@ void Profile::RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) {
#if defined(OS_CHROMEOS)
registry->RegisterBooleanPref(prefs::kAllowScreenLock, true);
+
+ base::ListValue screen_unlock_whitelist_default;
+ screen_unlock_whitelist_default.AppendString("password");
+ registry->RegisterListPref(prefs::kQuickUnlockModeWhitelist,
+ screen_unlock_whitelist_default.DeepCopy());
+ registry->RegisterIntegerPref(
+ prefs::kQuickUnlockTimeout,
+ static_cast<int>(chromeos::PasswordConfirmationFrequency::DAY));
#endif
}

Powered by Google App Engine
This is Rietveld 408576698