OLD | NEW |
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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 }, | 82 }, |
83 | 83 |
84 // <if expr="chromeos"> | 84 // <if expr="chromeos"> |
85 /** | 85 /** |
86 * True if quick unlock settings should be displayed on this machine. | 86 * True if quick unlock settings should be displayed on this machine. |
87 * @private | 87 * @private |
88 */ | 88 */ |
89 quickUnlockEnabled_: { | 89 quickUnlockEnabled_: { |
90 type: Boolean, | 90 type: Boolean, |
91 value: function() { | 91 value: function() { |
92 return loadTimeData.getBoolean('pinUnlockEnabled'); | 92 return loadTimeData.getBoolean('pinUnlockEnabled') || |
| 93 loadTimeData.getBoolean('fingerprintUnlockEnabled'); |
93 }, | 94 }, |
94 readOnly: true, | 95 readOnly: true, |
95 }, | 96 }, |
96 | 97 |
97 /** @private {!settings.EasyUnlockBrowserProxy} */ | 98 /** @private {!settings.EasyUnlockBrowserProxy} */ |
98 easyUnlockBrowserProxy_: { | 99 easyUnlockBrowserProxy_: { |
99 type: Object, | 100 type: Object, |
100 value: function() { | 101 value: function() { |
101 return settings.EasyUnlockBrowserProxyImpl.getInstance(); | 102 return settings.EasyUnlockBrowserProxyImpl.getInstance(); |
102 }, | 103 }, |
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
510 | 511 |
511 /** | 512 /** |
512 * @param {!settings.SyncStatus} syncStatus | 513 * @param {!settings.SyncStatus} syncStatus |
513 * @return {boolean} Whether to show the "Sign in to Chrome" button. | 514 * @return {boolean} Whether to show the "Sign in to Chrome" button. |
514 * @private | 515 * @private |
515 */ | 516 */ |
516 showSignin_: function(syncStatus) { | 517 showSignin_: function(syncStatus) { |
517 return !!syncStatus.signinAllowed && !syncStatus.signedIn; | 518 return !!syncStatus.signinAllowed && !syncStatus.signedIn; |
518 }, | 519 }, |
519 }); | 520 }); |
OLD | NEW |