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

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

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 | « no previous file | chrome/browser/resources/md_history/side_bar.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/md_history/side_bar.html
diff --git a/chrome/browser/resources/md_history/side_bar.html b/chrome/browser/resources/md_history/side_bar.html
index 79a518043d087703c7a2ee4f562590e31355fac2..d26b03c3434997317a99d3969370577af4f07545 100644
--- a/chrome/browser/resources/md_history/side_bar.html
+++ b/chrome/browser/resources/md_history/side_bar.html
@@ -67,6 +67,11 @@
color: var(--link-color);
}
+ iron-selector > a[disabled] {
+ opacity: 0.65;
+ pointer-events: none;
+ }
+
#spacer {
flex: 1;
}
@@ -101,8 +106,11 @@
<paper-ripple></paper-ripple>
</a>
<div class="separator"></div>
- <a href="chrome://settings/clearBrowserData"
- on-tap="onClearBrowsingDataTap_" id="clear-browsing-data">
+ <a id="clear-browsing-data"
+ href="chrome://settings/clearBrowserData"
+ on-tap="onClearBrowsingDataTap_"
+ disabled$="[[guestSession_]]"
+ tabindex$="[[computeClearBrowsingDataTabIndex_(guestSession_)]]">
$i18n{clearBrowsingData}
<iron-icon icon="cr:open-in-new"></iron-icon>
<paper-ripple id="cbd-ripple"></paper-ripple>
« no previous file with comments | « no previous file | chrome/browser/resources/md_history/side_bar.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698