OLD | NEW |
---|---|
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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-lock-screen' allows the user to change how they unlock their | 7 * 'settings-lock-screen' allows the user to change how they unlock their |
8 * device. | 8 * device. |
9 * | 9 * |
10 * Example: | 10 * Example: |
(...skipping 19 matching lines...) Expand all Loading... | |
30 * entered password. It's defined only when the user has already entered a | 30 * entered password. It's defined only when the user has already entered a |
31 * valid password. | 31 * valid password. |
32 * | 32 * |
33 * @type {Object|undefined} | 33 * @type {Object|undefined} |
34 * @private | 34 * @private |
35 */ | 35 */ |
36 setModes_: { | 36 setModes_: { |
37 type: Object, | 37 type: Object, |
38 observer: 'onSetModesChanged_' | 38 observer: 'onSetModesChanged_' |
39 }, | 39 }, |
40 | |
41 /** | |
42 * True if fingerprint unlock settings should be displayed on this machine. | |
43 * @private | |
44 */ | |
45 fingerprintUnlockEnabled_: { | |
46 type: Boolean, | |
47 value: function() { | |
48 return loadTimeData.getBoolean('fingerprintUnlockEnabled'); | |
jdufault
2016/12/02 23:02:12
This is not defined inside of options so all of th
sammiequon
2016/12/03 21:40:51
Done. Yeah i noticed this after the trybots return
| |
49 }, | |
50 readOnly: true, | |
51 }, | |
40 }, | 52 }, |
41 | 53 |
42 /** selectedUnlockType is defined in LockStateBehavior. */ | 54 /** selectedUnlockType is defined in LockStateBehavior. */ |
43 observers: ['selectedUnlockTypeChanged_(selectedUnlockType)'], | 55 observers: ['selectedUnlockTypeChanged_(selectedUnlockType)'], |
44 | 56 |
45 /** @override */ | 57 /** @override */ |
46 attached: function() { | 58 attached: function() { |
47 // currentRouteChanged is not called during the initial navigation. If the | 59 // currentRouteChanged is not called during the initial navigation. If the |
48 // user navigates directly to the lockScreen page, we still want to show the | 60 // user navigates directly to the lockScreen page, we still want to show the |
49 // password prompt page. | 61 // password prompt page. |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
116 if (this.hasPin) | 128 if (this.hasPin) |
117 return this.i18n('lockScreenChangePinButton'); | 129 return this.i18n('lockScreenChangePinButton'); |
118 return this.i18n('lockScreenSetupPinButton'); | 130 return this.i18n('lockScreenSetupPinButton'); |
119 }, | 131 }, |
120 | 132 |
121 /** @private */ | 133 /** @private */ |
122 onConfigurePin_: function() { | 134 onConfigurePin_: function() { |
123 this.$.setupPin.open(); | 135 this.$.setupPin.open(); |
124 }, | 136 }, |
125 }); | 137 }); |
OLD | NEW |