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

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

Issue 2270993003: MD History: Add icon in top right of page when showing synced results (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@downloads_wide_toolbar
Patch Set: Move to MD-specific strings Created 4 years, 3 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 d25e8e92e1a2bba7eb5a35d545fdfa19c97e8ce8..522e8f9b32adc214841785c03666f0e42515827b 100644
--- a/chrome/browser/resources/md_history/history.js
+++ b/chrome/browser/resources/md_history/history.js
@@ -58,14 +58,10 @@ function historyResult(info, results) {
*/
function showNotification(
hasSyncedResults, includeOtherFormsOfBrowsingHistory) {
- // TODO(msramek): |hasSyncedResults| was used in the old WebUI to show
- // the message about other signed-in devices. This message does not exist
- // in the MD history anymore, so the parameter is not needed. Remove it
- // when WebUI is removed and this becomes the only client of
- // BrowsingHistoryHandler.
waitForAppUpgrade().then(function() {
- /** @type {HistoryAppElement} */ ($('history-app')).showSidebarFooter =
- includeOtherFormsOfBrowsingHistory;
+ var app = /** @type {HistoryAppElement} */ ($('history-app'));
+ app.showSidebarFooter = includeOtherFormsOfBrowsingHistory;
+ app.hasSyncedResults = hasSyncedResults;
});
}
« no previous file with comments | « chrome/browser/resources/md_history/app.vulcanized.html ('k') | chrome/browser/resources/md_history/history_toolbar.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698