| 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 5f2bae8041eb8424a1f71364c2e4a895a017da64..5be11c9d3361feb10fa51e944f527a6b32bfd450 100644
|
| --- a/chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm
|
| +++ b/chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm
|
| @@ -182,6 +182,10 @@ NSImage* GetImageFromResourceID(int resourceId) {
|
| profiles::GetSigninErrorController(browser->profile());
|
|
|
| [button_ setCell:cell.get()];
|
| +
|
| + if (errorController)
|
| + [cell setHasError:errorController->HasError() withTitle:[button_ title]];
|
| +
|
| [self setView:button_];
|
|
|
| [button_ setBezelStyle:NSShadowlessSquareBezelStyle];
|
| @@ -196,8 +200,6 @@ NSImage* GetImageFromResourceID(int resourceId) {
|
| [button_ setAction:@selector(buttonClicked:)];
|
|
|
| [self updateAvatarButtonAndLayoutParent:NO];
|
| - if (errorController)
|
| - [cell setHasError:errorController->HasError() withTitle:[button_ title]];
|
|
|
| NSNotificationCenter* center = [NSNotificationCenter defaultCenter];
|
| [center addObserver:self
|
|
|