| 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 59f80c6451c3c1b23ea75ad662049015887c73de..01ac15d3006294af21833d1e8060604c00b4fb27 100644
|
| --- a/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm
|
| +++ b/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm
|
| @@ -1099,8 +1099,9 @@ class ActiveProfileObserverBridge : public AvatarMenuObserver,
|
|
|
| - (IBAction)switchToProfile:(id)sender {
|
| // Check the event flags to see if a new window should be created.
|
| - bool alwaysCreate = ui::WindowOpenDispositionFromNSEvent(
|
| - [NSApp currentEvent]) == NEW_WINDOW;
|
| + bool alwaysCreate =
|
| + ui::WindowOpenDispositionFromNSEvent([NSApp currentEvent]) ==
|
| + WindowOpenDisposition::NEW_WINDOW;
|
| avatarMenu_->SwitchToProfile([sender tag], alwaysCreate,
|
| ProfileMetrics::SWITCH_PROFILE_ICON);
|
| }
|
|
|