Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(26)

Unified Diff: chrome/browser/resources/md_history/history.js

Issue 2077473002: MD History: add sign in promo in synced tabs when user isn't logged in (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
+ });
+}

Powered by Google App Engine
This is Rietveld 408576698