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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 }, | 59 }, |
60 }, | 60 }, |
61 | 61 |
62 <if expr="chromeos"> | 62 <if expr="chromeos"> |
63 /** | 63 /** |
64 * True if quick unlock settings should be displayed on this machine. | 64 * True if quick unlock settings should be displayed on this machine. |
65 * @private | 65 * @private |
66 */ | 66 */ |
67 quickUnlockAllowed_: { | 67 quickUnlockAllowed_: { |
68 type: Boolean, | 68 type: Boolean, |
69 // TODO(jdufault): Get a real value via quickUnlockPrivate API. | 69 value: function() { |
70 value: false, | 70 return loadTimeData.getBoolean('quickUnlockAllowed'); |
| 71 }, |
71 readOnly: true, | 72 readOnly: true, |
72 }, | 73 }, |
73 | 74 |
74 /** @private {!settings.EasyUnlockBrowserProxy} */ | 75 /** @private {!settings.EasyUnlockBrowserProxy} */ |
75 easyUnlockBrowserProxy_: { | 76 easyUnlockBrowserProxy_: { |
76 type: Object, | 77 type: Object, |
77 value: function() { | 78 value: function() { |
78 return settings.EasyUnlockBrowserProxyImpl.getInstance(); | 79 return settings.EasyUnlockBrowserProxyImpl.getInstance(); |
79 }, | 80 }, |
80 }, | 81 }, |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
317 if (!syncStatus) | 318 if (!syncStatus) |
318 return ''; | 319 return ''; |
319 if (syncStatus.hasError) | 320 if (syncStatus.hasError) |
320 return 'settings:sync-problem'; | 321 return 'settings:sync-problem'; |
321 if (syncStatus.managed) | 322 if (syncStatus.managed) |
322 return 'settings:sync-disabled'; | 323 return 'settings:sync-disabled'; |
323 | 324 |
324 return 'settings:done'; | 325 return 'settings:done'; |
325 }, | 326 }, |
326 }); | 327 }); |
OLD | NEW |