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 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
508 | 509 |
509 /** | 510 /** |
510 * @param {!settings.SyncStatus} syncStatus | 511 * @param {!settings.SyncStatus} syncStatus |
511 * @return {boolean} Whether to show the "Sign in to Chrome" button. | 512 * @return {boolean} Whether to show the "Sign in to Chrome" button. |
512 * @private | 513 * @private |
513 */ | 514 */ |
514 showSignin_: function(syncStatus) { | 515 showSignin_: function(syncStatus) { |
515 return !!syncStatus.signinAllowed && !syncStatus.signedIn; | 516 return !!syncStatus.signinAllowed && !syncStatus.signedIn; |
516 }, | 517 }, |
517 }); | 518 }); |
OLD | NEW |