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 3f43637f7e33f07ab9c1398845a4c7cfab50909e..6bb1192e3871232a9c3b40396d5bec4b131df0c3 100644 |
--- a/chrome/browser/ui/webui/options/options_handlers_helper.cc |
+++ b/chrome/browser/ui/webui/options/options_handlers_helper.cc |
@@ -51,9 +51,10 @@ 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 in managed mode, for example because |
- // the user fiddled with the web inspector. Silently return in this case. |
- if (Profile::FromWebUI(web_ui)->IsManaged()) |
+ // 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()) |