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

Unified Diff: chrome/browser/ui/webui/options/browser_options_handler.cc

Issue 2387253002: cros: Added policies for screen unlock. (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/ui/webui/options/browser_options_handler.cc
diff --git a/chrome/browser/ui/webui/options/browser_options_handler.cc b/chrome/browser/ui/webui/options/browser_options_handler.cc
index 1df3b23da75e81f52ccfc83af7efc1cb728c6d01..e1e0e6c38a6a6e5cd4b840db19d7ae6a9e5b423f 100644
--- a/chrome/browser/ui/webui/options/browser_options_handler.cc
+++ b/chrome/browser/ui/webui/options/browser_options_handler.cc
@@ -753,8 +753,8 @@ void BrowserOptionsHandler::GetLocalizedValues(base::DictionaryValue* values) {
values->SetBoolean("allowBluetooth", allow_bluetooth);
values->SetBoolean("showQuickUnlockSettings",
- chromeos::IsQuickUnlockEnabled());
- if (chromeos::IsQuickUnlockEnabled()) {
+ chromeos::IsPinUnlockEnabled(profile->GetPrefs()));
+ if (chromeos::IsPinUnlockEnabled(profile->GetPrefs())) {
values->SetString(
"enableScreenlock",
l10n_util::GetStringUTF16(
« no previous file with comments | « chrome/browser/resources/settings/people_page/people_page.js ('k') | chrome/browser/ui/webui/settings/md_settings_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698