| Index: chrome/browser/ui/cocoa/profiles/avatar_base_controller.mm
|
| diff --git a/chrome/browser/ui/cocoa/profiles/avatar_base_controller.mm b/chrome/browser/ui/cocoa/profiles/avatar_base_controller.mm
|
| index e3336946658c30c1d6e4932fda1e9af2804fd1a3..ef503f002245ebf0682c24d027402f3e92851b1e 100644
|
| --- a/chrome/browser/ui/cocoa/profiles/avatar_base_controller.mm
|
| +++ b/chrome/browser/ui/cocoa/profiles/avatar_base_controller.mm
|
| @@ -24,6 +24,7 @@
|
| #import "chrome/browser/ui/cocoa/profiles/profile_chooser_controller.h"
|
| #include "components/signin/core/browser/signin_error_controller.h"
|
| #include "components/signin/core/common/profile_management_switches.h"
|
| +#include "ui/base/cocoa/cocoa_base_utils.h"
|
|
|
| // Space between the avatar icon and the avatar menu bubble.
|
| const CGFloat kMenuYOffsetAdjust = 1.0;
|
| @@ -179,7 +180,7 @@ class ProfileAttributesUpdateObserver
|
| NSPoint point = NSMakePoint(anchorX,
|
| NSMaxY([anchor bounds]) + kMenuYOffsetAdjust);
|
| point = [anchor convertPoint:point toView:nil];
|
| - point = [[anchor window] convertBaseToScreen:point];
|
| + point = ui::ConvertPointFromWindowToScreen([anchor window], point);
|
|
|
| // |menuController_| will automatically release itself on close.
|
| profiles::BubbleViewMode viewMode;
|
|
|