| Index: chrome/browser/resources/md_history/history.js
|
| diff --git a/chrome/browser/resources/md_history/history.js b/chrome/browser/resources/md_history/history.js
|
| index 8c14e95ff8700b8dc01bab7a1e456d5617c09766..a81338b4be58bb0d0c77b356e643670d0c62f1d9 100644
|
| --- a/chrome/browser/resources/md_history/history.js
|
| +++ b/chrome/browser/resources/md_history/history.js
|
| @@ -73,3 +73,15 @@ function setForeignSessions(sessionList, isTabSyncEnabled) {
|
| */
|
| function historyDeleted() {
|
| }
|
| +
|
| +/**
|
| + * Called by the history backend after user's sign in state changes.
|
| + * @param {boolean} isUserSignedIn Whether user is signed in or not now.
|
| + */
|
| +function updateSignInState(isUserSignedIn) {
|
| + var appElem = $('history-app');
|
| + waitForUpgrade(appElem).then(function() {
|
| + /** @type {HistoryAppElement} */(appElem)
|
| + .updateSignInState(isUserSignedIn);
|
| + });
|
| +}
|
|
|