| 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 88b8f00def2ce9589f6e84011039e21fccc5f9cb..f8f8dfb31898127295d6306352b280550bff2ce5 100644
|
| --- a/chrome/browser/ui/cocoa/profiles/avatar_base_controller.mm
|
| +++ b/chrome/browser/ui/cocoa/profiles/avatar_base_controller.mm
|
| @@ -10,6 +10,7 @@
|
| #include "chrome/browser/profiles/profile_avatar_icon_util.h"
|
| #include "chrome/browser/profiles/profile_manager.h"
|
| #include "chrome/browser/profiles/profile_metrics.h"
|
| +#include "chrome/browser/signin/signin_header_helper.h"
|
| #include "chrome/browser/ui/browser.h"
|
| #include "chrome/browser/ui/browser_commands.h"
|
| #include "chrome/browser/ui/browser_window.h"
|
| @@ -98,7 +99,8 @@ class ProfileInfoUpdateObserver : public ProfileInfoCacheObserver {
|
| }
|
|
|
| - (void)showAvatarBubble:(NSView*)anchor
|
| - withMode:(BrowserWindow::AvatarBubbleMode)mode {
|
| + withMode:(BrowserWindow::AvatarBubbleMode)mode
|
| + withServiceType:(signin::GAIAServiceType)serviceType {
|
| if (menuController_)
|
| return;
|
|
|
| @@ -129,7 +131,8 @@ class ProfileInfoUpdateObserver : public ProfileInfoCacheObserver {
|
| menuController_ =
|
| [[ProfileChooserController alloc] initWithBrowser:browser_
|
| anchoredAt:point
|
| - withMode:viewMode];
|
| + withMode:viewMode
|
| + withServiceType:serviceType];
|
| } else {
|
| menuController_ =
|
| [[AvatarMenuBubbleController alloc] initWithBrowser:browser_
|
| @@ -149,7 +152,8 @@ class ProfileInfoUpdateObserver : public ProfileInfoCacheObserver {
|
| - (IBAction)buttonClicked:(id)sender {
|
| DCHECK_EQ(sender, button_.get());
|
| [self showAvatarBubble:button_
|
| - withMode:BrowserWindow::AVATAR_BUBBLE_MODE_DEFAULT];
|
| + withMode:BrowserWindow::AVATAR_BUBBLE_MODE_DEFAULT
|
| + withServiceType:signin::GAIA_SERVICE_TYPE_NONE];
|
| }
|
|
|
| - (void)bubbleWillClose:(NSNotification*)notif {
|
|
|