| 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 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 469 | 469 |
| 470 /** | 470 /** |
| 471 * @private | 471 * @private |
| 472 * @param {?settings.SyncStatus} syncStatus | 472 * @param {?settings.SyncStatus} syncStatus |
| 473 * @return {string} | 473 * @return {string} |
| 474 */ | 474 */ |
| 475 getSyncIcon_: function(syncStatus) { | 475 getSyncIcon_: function(syncStatus) { |
| 476 if (!syncStatus) | 476 if (!syncStatus) |
| 477 return ''; | 477 return ''; |
| 478 | 478 |
| 479 var syncIcon = 'settings:sync'; | 479 var syncIcon = 'cr:sync'; |
| 480 | 480 |
| 481 if (syncStatus.hasError) | 481 if (syncStatus.hasError) |
| 482 syncIcon = 'settings:sync-problem'; | 482 syncIcon = 'cr:sync-problem'; |
| 483 | 483 |
| 484 // Override the icon to the disabled icon if sync is managed. | 484 // Override the icon to the disabled icon if sync is managed. |
| 485 if (syncStatus.managed) | 485 if (syncStatus.managed) |
| 486 syncIcon = 'settings:sync-disabled'; | 486 syncIcon = 'cr:sync-disabled'; |
| 487 | 487 |
| 488 return syncIcon; | 488 return syncIcon; |
| 489 }, | 489 }, |
| 490 | 490 |
| 491 /** | 491 /** |
| 492 * @private | 492 * @private |
| 493 * @param {?settings.SyncStatus} syncStatus | 493 * @param {?settings.SyncStatus} syncStatus |
| 494 * @return {string} The class name for the sync status text. | 494 * @return {string} The class name for the sync status text. |
| 495 */ | 495 */ |
| 496 getSyncStatusTextClass_: function(syncStatus) { | 496 getSyncStatusTextClass_: function(syncStatus) { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 508 | 508 |
| 509 /** | 509 /** |
| 510 * @param {!settings.SyncStatus} syncStatus | 510 * @param {!settings.SyncStatus} syncStatus |
| 511 * @return {boolean} Whether to show the "Sign in to Chrome" button. | 511 * @return {boolean} Whether to show the "Sign in to Chrome" button. |
| 512 * @private | 512 * @private |
| 513 */ | 513 */ |
| 514 showSignin_: function(syncStatus) { | 514 showSignin_: function(syncStatus) { |
| 515 return !!syncStatus.signinAllowed && !syncStatus.signedIn; | 515 return !!syncStatus.signinAllowed && !syncStatus.signedIn; |
| 516 }, | 516 }, |
| 517 }); | 517 }); |
| OLD | NEW |