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

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

Issue 2478773002: [MD History] Disable menu button when history deletion is disabled. (Closed)
Patch Set: rebase Created 4 years, 1 month 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/list_container.js
diff --git a/chrome/browser/resources/md_history/list_container.js b/chrome/browser/resources/md_history/list_container.js
index 751742121431cc4a0406e75dc07ea1a112b6cc0e..613fa147a8123eef8e34f5de34602e0b83a2d126 100644
--- a/chrome/browser/resources/md_history/list_container.js
+++ b/chrome/browser/resources/md_history/list_container.js
@@ -279,4 +279,9 @@ Polymer({
* @private
*/
getSelectedList_: function() { return this.$.content.selectedItem; },
+
+ /** @private */
+ canDeleteHistory_: function() {
+ return loadTimeData.getBoolean('allowDeletingHistory');
+ }
});

Powered by Google App Engine
This is Rietveld 408576698