| 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 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 324 getSyncIcon_: function(syncStatus) { | 324 getSyncIcon_: function(syncStatus) { |
| 325 if (!syncStatus) | 325 if (!syncStatus) |
| 326 return ''; | 326 return ''; |
| 327 if (syncStatus.hasError) | 327 if (syncStatus.hasError) |
| 328 return 'settings:sync-problem'; | 328 return 'settings:sync-problem'; |
| 329 if (syncStatus.managed) | 329 if (syncStatus.managed) |
| 330 return 'settings:sync-disabled'; | 330 return 'settings:sync-disabled'; |
| 331 | 331 |
| 332 return 'settings:done'; | 332 return 'settings:done'; |
| 333 }, | 333 }, |
| 334 |
| 335 /** |
| 336 * @param {string} iconUrl |
| 337 * @return {string} A CSS imageset for multiple scale factors. |
| 338 * @private |
| 339 */ |
| 340 getIconImageset_: function(iconUrl) { |
| 341 return cr.icon.getProfileAvatarIcon(iconUrl); |
| 342 }, |
| 334 }); | 343 }); |
| OLD | NEW |