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

Unified Diff: chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm

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/cocoa/profiles/profile_chooser_controller.mm
diff --git a/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm b/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm
index c1b84666aebe8bc76e466633013286a66a890d66..ba08b6d7ec458b5492c0a27e54c474fdee0066dd 100644
--- a/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm
+++ b/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm
@@ -1028,7 +1028,7 @@ class ActiveProfileObserverBridge : public AvatarMenuObserver,
}
// For supervised users, add the disclaimer text.
- if (browser_->profile()->IsManaged()) {
+ if (browser_->profile()->IsSupervised()) {
yOffset += kSmallVerticalSpacing;
NSView* disclaimerContainer = [self createSupervisedUserDisclaimerView];
[disclaimerContainer setFrameOrigin:NSMakePoint(0, yOffset)];
@@ -1239,7 +1239,8 @@ class ActiveProfileObserverBridge : public AvatarMenuObserver,
}
// Profile name, centered.
- bool editingAllowed = !isGuestSession_ && !browser_->profile()->IsManaged();
+ bool editingAllowed = !isGuestSession_ &&
+ !browser_->profile()->IsSupervised();
base::scoped_nsobject<EditableProfileNameButton> profileName(
[[EditableProfileNameButton alloc]
initWithFrame:NSMakeRect(xOffset, yOffset,
@@ -1268,7 +1269,7 @@ class ActiveProfileObserverBridge : public AvatarMenuObserver,
[container addSubview:iconView];
yOffset = NSMaxY([iconView frame]);
- if (browser_->profile()->IsManaged()) {
+ if (browser_->profile()->IsSupervised()) {
base::scoped_nsobject<NSImageView> supervisedIcon(
[[NSImageView alloc] initWithFrame:NSZeroRect]);
ui::ResourceBundle* rb = &ui::ResourceBundle::GetSharedInstance();
@@ -1370,7 +1371,7 @@ class ActiveProfileObserverBridge : public AvatarMenuObserver,
int availableTextWidth = kFixedMenuWidth - 2 * kHorizontalSpacing;
NSTextField* disclaimer = BuildLabel(
- base::SysUTF16ToNSString(avatarMenu_->GetManagedUserInformation()),
+ base::SysUTF16ToNSString(avatarMenu_->GetSupervisedUserInformation()),
NSMakePoint(kHorizontalSpacing, yOffset),
nil /* background_color */,
nil /* text_color */);

Powered by Google App Engine
This is Rietveld 408576698