| 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 b90c224829c609200234f69ba377c858882eb9f7..75f92689bfd7db92941054224768984bff9916be 100644
|
| --- a/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm
|
| +++ b/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm
|
| @@ -1722,6 +1722,11 @@ class ActiveProfileObserverBridge : public AvatarMenuObserver,
|
| IDS_PROFILES_PROFILE_SIGNOUT_BUTTON)
|
| imageResourceId:IDR_ICON_PROFILES_MENU_LOCK
|
| action:@selector(lockProfile:)];
|
| +
|
| + if (!browser_->profile()->GetPrefs()->GetBoolean(
|
| + prefs::kProfileIsLockable)) {
|
| + [lockButton setEnabled:NO];
|
| + }
|
| [container addSubview:lockButton];
|
| viewRect.origin.y = NSMaxY([lockButton frame]);
|
|
|
|
|