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

Unified Diff: chrome/browser/ui/webui/options/options_handlers_helper.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/options_handlers_helper.cc
diff --git a/chrome/browser/ui/webui/options/options_handlers_helper.cc b/chrome/browser/ui/webui/options/options_handlers_helper.cc
index 661ab3da9627e7d3ca81f04b0e6d2a2b369031cc..b8bda6adf9a82a25246482de79b934212abc2119 100644
--- a/chrome/browser/ui/webui/options/options_handlers_helper.cc
+++ b/chrome/browser/ui/webui/options/options_handlers_helper.cc
@@ -51,11 +51,6 @@ void OpenNewWindowForProfile(chrome::HostDesktopType desktop_type,
void DeleteProfileAtPath(base::FilePath file_path, content::WebUI* web_ui) {
DCHECK(web_ui);
- // This handler could have been called for a supervised user, for example
- // because the user fiddled with the web inspector. Silently return in this
- // case.
- if (Profile::FromWebUI(web_ui)->IsSupervised())
- return;
if (!profiles::IsMultipleProfilesEnabled())
return;

Powered by Google App Engine
This is Rietveld 408576698