Chromium Code Reviews| Index: chrome/browser/ui/cocoa/profiles/avatar_button_controller.h |
| diff --git a/chrome/browser/ui/cocoa/profiles/avatar_button_controller.h b/chrome/browser/ui/cocoa/profiles/avatar_button_controller.h |
| index 51a349ef96a09115321daabaa41953c556b3aa34..9d4725285141122b7da6f123dcb7348ecbba7dcf 100644 |
| --- a/chrome/browser/ui/cocoa/profiles/avatar_button_controller.h |
| +++ b/chrome/browser/ui/cocoa/profiles/avatar_button_controller.h |
| @@ -20,9 +20,12 @@ class Browser; |
| // Whether the signed in profile has an authentication error. Used to |
| // display an error icon next to the button text. |
| BOOL hasError_; |
| + |
| + // The window associated with the avatar button. |
| + NSWindow* window_; |
|
shrike
2017/01/26 22:10:13
You should notate that this is weak?
spqchan
2017/01/26 22:39:37
Done.
|
| } |
| // Designated initializer. |
| -- (id)initWithBrowser:(Browser*)browser; |
| +- (id)initWithBrowser:(Browser*)browser window:(NSWindow*)window; |
| // Overridden so that we can change the active state of the avatar button. |
| - (void)showAvatarBubbleAnchoredAt:(NSView*)anchor |