| 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 3f34aeeae799094a9010e963cd7dd63a58f5e42a..62b634fecd91984bf3e082ea20ad01bf59b94d7a 100644
|
| --- a/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm
|
| +++ b/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm
|
| @@ -1594,13 +1594,10 @@ class ActiveProfileObserverBridge : public AvatarMenuObserver,
|
| showLock = item.signed_in &&
|
| profiles::IsLockAvailable(browser_->profile());
|
| } else {
|
| - NSButton* otherProfileView = [self createOtherProfileView:i];
|
| - if (!firstProfileView_) {
|
| - firstProfileView_ = otherProfileView;
|
| - }
|
| - [otherProfiles addObject:otherProfileView];
|
| + [otherProfiles addObject:[self createOtherProfileView:i]];
|
| }
|
| }
|
| + firstProfileView_ = [otherProfiles lastObject];
|
| if (!currentProfileView) // Guest windows don't have an active profile.
|
| currentProfileView = [self createGuestProfileView];
|
|
|
|
|