| Index: chrome/browser/resources/md_history/synced_device_manager.js
|
| diff --git a/chrome/browser/resources/md_history/synced_device_manager.js b/chrome/browser/resources/md_history/synced_device_manager.js
|
| index 8df8973d7b22dac9e45f4cd467e8b5d53614a5c9..036c0946dd536401807400946f7d9653aab3c4a8 100644
|
| --- a/chrome/browser/resources/md_history/synced_device_manager.js
|
| +++ b/chrome/browser/resources/md_history/synced_device_manager.js
|
| @@ -45,6 +45,12 @@ Polymer({
|
| },
|
|
|
| /** @private */
|
| + guestSession_: {
|
| + type: Boolean,
|
| + value: loadTimeData.getBoolean('isGuestSession'),
|
| + },
|
| +
|
| + /** @private */
|
| fetchingSyncedTabs_: {
|
| type: Boolean,
|
| value: false,
|
| @@ -111,10 +117,23 @@ Polymer({
|
| * @return {boolean}
|
| */
|
| showNoSyncedMessage: function(signInState, syncedDevicesLength) {
|
| + if (this.guestSession_)
|
| + return true;
|
| +
|
| return signInState && syncedDevicesLength == 0;
|
| },
|
|
|
| /**
|
| + * Shows the signin guide when the user is not signed in and not in a guest
|
| + * session.
|
| + * @param {boolean} signInState
|
| + * @return {boolean}
|
| + */
|
| + showSignInGuide: function(signInState) {
|
| + return !signInState && !this.guestSession_;
|
| + },
|
| +
|
| + /**
|
| * Decide what message should be displayed when user is logged in and there
|
| * are no synced tabs.
|
| * @param {boolean} fetchingSyncedTabs
|
|
|