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

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

Issue 2387253002: cros: Added policies for screen unlock. (Closed)
Patch Set: Fixed patch set 7 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 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
}

Powered by Google App Engine
This is Rietveld 408576698