Chromium Code Reviews| 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 70 * @private | 70 * @private |
| 71 */ | 71 */ |
| 72 quickUnlockEnabled_: { | 72 quickUnlockEnabled_: { |
| 73 type: Boolean, | 73 type: Boolean, |
| 74 value: function() { | 74 value: function() { |
| 75 return loadTimeData.getBoolean('pinUnlockEnabled'); | 75 return loadTimeData.getBoolean('pinUnlockEnabled'); |
| 76 }, | 76 }, |
| 77 readOnly: true, | 77 readOnly: true, |
| 78 }, | 78 }, |
| 79 | 79 |
| 80 fingerprintUnlockEnabled_: { | |
|
jdufault
2016/12/01 17:11:20
I think it makes a little bit more sense to handle
sammiequon
2016/12/01 20:52:29
Done.
| |
| 81 type: Boolean, | |
| 82 value: function() { | |
| 83 return loadTimeData.getBoolean('fingerprintUnlockEnabled'); | |
| 84 }, | |
| 85 readOnly: true, | |
| 86 }, | |
| 87 | |
| 80 /** @private {!settings.EasyUnlockBrowserProxy} */ | 88 /** @private {!settings.EasyUnlockBrowserProxy} */ |
| 81 easyUnlockBrowserProxy_: { | 89 easyUnlockBrowserProxy_: { |
| 82 type: Object, | 90 type: Object, |
| 83 value: function() { | 91 value: function() { |
| 84 return settings.EasyUnlockBrowserProxyImpl.getInstance(); | 92 return settings.EasyUnlockBrowserProxyImpl.getInstance(); |
| 85 }, | 93 }, |
| 86 }, | 94 }, |
| 87 | 95 |
| 88 /** | 96 /** |
| 89 * True if Easy Unlock is allowed on this machine. | 97 * True if Easy Unlock is allowed on this machine. |
| (...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 450 | 458 |
| 451 /** | 459 /** |
| 452 * @param {!settings.SyncStatus} syncStatus | 460 * @param {!settings.SyncStatus} syncStatus |
| 453 * @return {boolean} Whether to show the "Sign in to Chrome" button. | 461 * @return {boolean} Whether to show the "Sign in to Chrome" button. |
| 454 * @private | 462 * @private |
| 455 */ | 463 */ |
| 456 showSignin_: function(syncStatus) { | 464 showSignin_: function(syncStatus) { |
| 457 return !!syncStatus.signinAllowed && !syncStatus.signedIn; | 465 return !!syncStatus.signinAllowed && !syncStatus.signedIn; |
| 458 }, | 466 }, |
| 459 }); | 467 }); |
| OLD | NEW |