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

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

Issue 316863002: Rename "managed (mode|user)" to "supervised user" (part 1) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 6 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 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())

Powered by Google App Engine
This is Rietveld 408576698