| 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 * | |
| 9 * Example: | |
| 10 * | |
| 11 * <iron-animated-pages> | |
| 12 * <settings-people-page prefs="{{prefs}}"></settings-people-page> | |
| 13 * ... other pages ... | |
| 14 * </iron-animated-pages> | |
| 15 */ | 8 */ |
| 16 Polymer({ | 9 Polymer({ |
| 17 is: 'settings-people-page', | 10 is: 'settings-people-page', |
| 18 | 11 |
| 19 behaviors: [ | 12 behaviors: [ |
| 20 I18nBehavior, | |
| 21 WebUIListenerBehavior, | 13 WebUIListenerBehavior, |
| 22 ], | 14 ], |
| 23 | 15 |
| 24 properties: { | 16 properties: { |
| 25 /** | 17 /** |
| 26 * The current active route. | 18 * The current active route. |
| 27 */ | 19 */ |
| 28 currentRoute: { | 20 currentRoute: { |
| 29 type: Object, | 21 type: Object, |
| 30 notify: true, | 22 notify: true, |
| (...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 | 247 |
| 256 /** | 248 /** |
| 257 * @private | 249 * @private |
| 258 * @return {boolean} | 250 * @return {boolean} |
| 259 */ | 251 */ |
| 260 isAdvancedSyncSettingsVisible_: function(syncStatus) { | 252 isAdvancedSyncSettingsVisible_: function(syncStatus) { |
| 261 return syncStatus && syncStatus.signedIn && !syncStatus.managed && | 253 return syncStatus && syncStatus.signedIn && !syncStatus.managed && |
| 262 syncStatus.syncSystemEnabled; | 254 syncStatus.syncSystemEnabled; |
| 263 }, | 255 }, |
| 264 }); | 256 }); |
| OLD | NEW |