diff options
author | treib@chromium.org <treib@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-28 14:29:13 +0000 |
---|---|---|
committer | treib@chromium.org <treib@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-28 14:29:13 +0000 |
commit | 4ded29fa9a3541923642e7c214fc1bd1de250772 (patch) | |
tree | b18ecb8438abe3e4e624f3a9e4ff77c3b595eb6b | |
parent | 2e3480664b912d3be357331e7cbdad04c80e7883 (diff) | |
download | chromium_src-4ded29fa9a3541923642e7c214fc1bd1de250772.zip chromium_src-4ded29fa9a3541923642e7c214fc1bd1de250772.tar.gz chromium_src-4ded29fa9a3541923642e7c214fc1bd1de250772.tar.bz2 |
New avatar menu: Don't show the "Sign in to Chrome" button if sign-in is not allowed.
This is the Mac counterpart to https://codereview.chromium.org/291843002/
BUG=372812, 310640
Review URL: https://codereview.chromium.org/298653004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@273221 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm b/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm index 1320999..7ff7d0d 100644 --- a/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm +++ b/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm @@ -1192,7 +1192,10 @@ class ActiveProfileObserverBridge : public AvatarMenuObserver, // Profile options. This can be a link to the accounts view, the profile's // username for signed in users, or a "Sign in" button for local profiles. - if (!isGuestSession_) { + SigninManagerBase* signinManager = + SigninManagerFactory::GetForProfile( + browser_->profile()->GetOriginalProfile()); + if (!isGuestSession_ && signinManager->IsSigninAllowed()) { NSView* linksContainer = [self createCurrentProfileLinksForItem:item rect:NSMakeRect(xOffset, yOffset, |