summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/webui/downloads_ui.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/ui/webui/downloads_ui.cc')
-rw-r--r--chrome/browser/ui/webui/downloads_ui.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/chrome/browser/ui/webui/downloads_ui.cc b/chrome/browser/ui/webui/downloads_ui.cc
index ebb01f3de..6b71ca3 100644
--- a/chrome/browser/ui/webui/downloads_ui.cc
+++ b/chrome/browser/ui/webui/downloads_ui.cc
@@ -81,6 +81,7 @@ content::WebUIDataSource* CreateDownloadsUIHTMLSource(Profile* profile) {
PrefService* prefs = profile->GetPrefs();
source->AddBoolean("allow_deleting_history",
prefs->GetBoolean(prefs::kAllowDeletingBrowserHistory));
+ source->AddBoolean("show_delete_history", !profile->IsManaged());
source->SetJsonPath("strings.js");
source->AddResourcePath("downloads.css", IDR_DOWNLOADS_CSS);