Chromium Code Reviews| Index: chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm |
| diff --git a/chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm b/chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm |
| index 409f9ab5532b0709b3bbfc41a2af33d358129b11..b12250ba6e3c9a3aed001fbac6c19318118b3abf 100644 |
| --- a/chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm |
| +++ b/chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm |
| @@ -97,10 +97,10 @@ NSImage* GetImageFromResourceID(int resourceId) { |
| - (void)drawImage:(NSImage*)image |
| withFrame:(NSRect)frame |
| inView:(NSView*)controlView { |
| - // The image used in the generic button case needs to be shifted down |
| - // slightly to be centered correctly. |
| + // The image used in the generic button case as well as the material-designed |
| + // error icon both need to be shifted down slightly to be centered correctly. |
| // TODO(noms): When the assets are fixed, remove this latter offset. |
| - if (!hasError_) |
| + if (!hasError_ || switches::IsMaterialDesignUserMenu()) { |
|
groby-ooo-7-16
2016/08/23 20:49:49
I wish we fixed the assets instead of adding more
|
| frame = NSOffsetRect(frame, 0, 1); |
| [super drawImage:image withFrame:frame inView:controlView]; |
| } |