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

Unified Diff: chrome/browser/ui/webui/options/browser_options_handler.cc

Issue 872263005: Allow supervised users to delete profiles in about:settings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review Created 5 years, 10 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/options/browser_options_handler.cc
diff --git a/chrome/browser/ui/webui/options/browser_options_handler.cc b/chrome/browser/ui/webui/options/browser_options_handler.cc
index 0e774381c42b687125d1ed99f43295f7772957f4..e3ddc0ee49f8d196d54c8f8ab2203829a3f173b5 100644
--- a/chrome/browser/ui/webui/options/browser_options_handler.cc
+++ b/chrome/browser/ui/webui/options/browser_options_handler.cc
@@ -616,9 +616,8 @@ void BrowserOptionsHandler::GetLocalizedValues(base::DictionaryValue* values) {
if (ShouldShowMultiProfilesUserList())
values->Set("profilesInfo", GetProfilesInfoList().release());
- // Profile deletion is not allowed for supervised users, or any users
- // using Metro mode.
- bool allow_deletion = !Profile::FromWebUI(web_ui())->IsSupervised();
+ // Profile deletion is not allowed for any users using Metro mode.
+ bool allow_deletion = true;
#if defined(USE_ASH)
allow_deletion = allow_deletion && !ash::Shell::HasInstance();
#endif

Powered by Google App Engine
This is Rietveld 408576698