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

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

Issue 2846433002: Disable Clear Browsing Data button in History for guest profiles (Closed)
Patch Set: Created 3 years, 8 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/side_bar.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/md_history/side_bar.js
diff --git a/chrome/browser/resources/md_history/side_bar.js b/chrome/browser/resources/md_history/side_bar.js
index e0f7e13ad31582d00b8d81cf437613b61ce347b2..cfc0b9434896c861e74240b9263250353c4bac8f 100644
--- a/chrome/browser/resources/md_history/side_bar.js
+++ b/chrome/browser/resources/md_history/side_bar.js
@@ -13,6 +13,12 @@ Polymer({
notify: true,
},
+ /** @private */
+ guestSession_: {
+ type: Boolean,
+ value: loadTimeData.getBoolean('isGuestSession'),
+ },
+
showFooter: Boolean,
},
@@ -49,6 +55,14 @@ Polymer({
},
/**
+ * @return {number}
+ * @private
+ */
+ computeClearBrowsingDataTabIndex_: function() {
+ return this.guestSession_ ? -1 : 0;
+ },
+
+ /**
* Prevent clicks on sidebar items from navigating. These are only links for
* accessibility purposes, taps are handled separately by <iron-selector>.
* @private
« no previous file with comments | « chrome/browser/resources/md_history/side_bar.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698