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

Side by Side Diff: chrome/browser/resources/settings/people_page/people_page.js

Issue 2862613003: md settings: Show lock screen when pin/fingerprint disabled. (Closed)
Patch Set: Fix patch set 2 errors. Created 3 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @fileoverview 6 * @fileoverview
7 * 'settings-people-page' is the settings page containing sign-in settings. 7 * 'settings-people-page' is the settings page containing sign-in settings.
8 */ 8 */
9 Polymer({ 9 Polymer({
10 is: 'settings-people-page', 10 is: 'settings-people-page',
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 type: Boolean, 71 type: Boolean,
72 value: false, 72 value: false,
73 }, 73 },
74 // </if> 74 // </if>
75 75
76 /** @private */ 76 /** @private */
77 showDisconnectDialog_: Boolean, 77 showDisconnectDialog_: Boolean,
78 78
79 // <if expr="chromeos"> 79 // <if expr="chromeos">
80 /** 80 /**
81 * True if quick unlock settings should be displayed on this machine. 81 * True if fingerprint settings should be displayed on this machine.
82 * @private 82 * @private
83 */ 83 */
84 quickUnlockEnabled_: { 84 fingerprintUnlockEnabled_: {
85 type: Boolean, 85 type: Boolean,
86 value: function() { 86 value: function() {
87 return loadTimeData.getBoolean('pinUnlockEnabled') || 87 return loadTimeData.getBoolean('fingerprintUnlockEnabled');
88 loadTimeData.getBoolean('fingerprintUnlockEnabled');
89 }, 88 },
90 readOnly: true, 89 readOnly: true,
91 }, 90 },
92 // </if> 91 // </if>
93 92
94 /** @private {!Map<string, string>} */ 93 /** @private {!Map<string, string>} */
95 focusConfig_: { 94 focusConfig_: {
96 type: Object, 95 type: Object,
97 value: function() { 96 value: function() {
98 var map = new Map(); 97 var map = new Map();
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 445
447 /** 446 /**
448 * @param {!settings.SyncStatus} syncStatus 447 * @param {!settings.SyncStatus} syncStatus
449 * @return {boolean} Whether to show the "Sign in to Chrome" button. 448 * @return {boolean} Whether to show the "Sign in to Chrome" button.
450 * @private 449 * @private
451 */ 450 */
452 showSignin_: function(syncStatus) { 451 showSignin_: function(syncStatus) {
453 return !!syncStatus.signinAllowed && !syncStatus.signedIn; 452 return !!syncStatus.signinAllowed && !syncStatus.signedIn;
454 }, 453 },
455 }); 454 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698