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

Unified Diff: chrome/browser/resources/md_history/app.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
« no previous file with comments | « chrome/browser/resources/md_history/app.html ('k') | chrome/browser/resources/md_history/app.crisper.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/md_history/app.js
diff --git a/chrome/browser/resources/md_history/app.js b/chrome/browser/resources/md_history/app.js
index c1de3c39eac53155f0d199d85059a5de812f9b0e..13f5e88e674e85131e8572c0e3b5bc3939e0f6f0 100644
--- a/chrome/browser/resources/md_history/app.js
+++ b/chrome/browser/resources/md_history/app.js
@@ -8,8 +8,11 @@ Polymer({
behaviors: [Polymer.IronScrollTargetBehavior],
properties: {
+ // Used to display notices for profile sign-in status.
showSidebarFooter: Boolean,
+ hasSyncedResults: Boolean,
+
// The id of the currently selected page.
selectedPage_: {type: String, observer: 'unselectAll'},
@@ -293,6 +296,16 @@ Polymer({
},
/**
+ * @param {boolean} hasSyncedResults
+ * @param {string} selectedPage
+ * @return {boolean} Whether the (i) synced results notice should be shown.
+ * @private
+ */
+ showSyncNotice_: function(hasSyncedResults, selectedPage) {
+ return hasSyncedResults && selectedPage != 'syncedTabs';
+ },
+
+ /**
* @param {string} page
* @private
*/
« no previous file with comments | « chrome/browser/resources/md_history/app.html ('k') | chrome/browser/resources/md_history/app.crisper.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698