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

Side by Side 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: first acceptable version 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 unified diff | Download patch
OLDNEW
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 // Send the history query immediately. This allows the query to process during 5 // Send the history query immediately. This allows the query to process during
6 // the initial page startup. 6 // the initial page startup.
7 chrome.send('queryHistory', ['', 0, 0, 0, RESULTS_PER_PAGE]); 7 chrome.send('queryHistory', ['', 0, 0, 0, RESULTS_PER_PAGE]);
8 chrome.send('getForeignSessions'); 8 chrome.send('getForeignSessions');
9 9
10 /** 10 /**
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 /** @type {HistoryAppElement} */(appElem) 66 /** @type {HistoryAppElement} */(appElem)
67 .setForeignSessions(sessionList, isTabSyncEnabled); 67 .setForeignSessions(sessionList, isTabSyncEnabled);
68 }); 68 });
69 } 69 }
70 70
71 /** 71 /**
72 * Called when the history is deleted by someone else. 72 * Called when the history is deleted by someone else.
73 */ 73 */
74 function historyDeleted() { 74 function historyDeleted() {
75 } 75 }
76
77 /**
78 * Called by the history backend after user's sign in state changes.
79 * @param {boolean} isUserSignedIn Whether user is signed in or not now.
80 */
81 function updateSignInState(isUserSignedIn) {
82 var appElem = $('history-app');
83 waitForUpgrade(appElem).then(function() {
84 /** @type {HistoryAppElement} */(appElem)
85 .updateSignInState(isUserSignedIn);
86 });
87 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698