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

Unified Diff: chrome/browser/resources/downloads/downloads.js

Issue 23851007: Hide the "downloads" page policy disabled UI elements from supervised users (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comment nit Created 7 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 | « no previous file | chrome/browser/ui/webui/downloads_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/downloads/downloads.js
diff --git a/chrome/browser/resources/downloads/downloads.js b/chrome/browser/resources/downloads/downloads.js
index d50f5eb66fc04bfd039868bc30a91a4b90ac36db..7522c5f2a9928cce5bac787019095dec870407e2 100644
--- a/chrome/browser/resources/downloads/downloads.js
+++ b/chrome/browser/resources/downloads/downloads.js
@@ -339,6 +339,9 @@ function Download(download) {
loadTimeData.getString('control_removefromlist'));
this.controlRemove_.appendChild(text);
}
+ if (!loadTimeData.getBoolean('show_delete_history'))
+ this.controlRemove_.hidden = true;
+
this.nodeControls_.appendChild(this.controlRemove_);
this.controlCancel_ = createLink(this.cancel_.bind(this),
@@ -733,6 +736,9 @@ function load() {
loadTimeData.getString('clear_all'));
clearAllHolder.classList.add('disabled-link');
}
+ if (!loadTimeData.getBoolean('show_delete_history'))
+ clearAllHolder.hidden = true;
+
clearAllHolder.appendChild(clearAllElement);
clearAllElement.oncontextmenu = function() { return false; };
« no previous file with comments | « no previous file | chrome/browser/ui/webui/downloads_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698