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

Unified Diff: chrome/browser/ui/webui/downloads_ui.cc

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: .. 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
Index: chrome/browser/ui/webui/downloads_ui.cc
diff --git a/chrome/browser/ui/webui/downloads_ui.cc b/chrome/browser/ui/webui/downloads_ui.cc
index ebb01f3de7004d8a18e08ec63eb326dcdf9cae95..6b71ca3fe503a70b498203ba3ff6b54b462b1a1b 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);

Powered by Google App Engine
This is Rietveld 408576698