Index: chrome/browser/ui/views/profiles/new_avatar_button.cc |
diff --git a/chrome/browser/ui/views/profiles/new_avatar_button.cc b/chrome/browser/ui/views/profiles/new_avatar_button.cc |
index 0fa981f6ef08fb36f9c2566b4ac52aaac0c5089a..3902505d01839f1b4be6d4350ccfca162c93ed0d 100644 |
--- a/chrome/browser/ui/views/profiles/new_avatar_button.cc |
+++ b/chrome/browser/ui/views/profiles/new_avatar_button.cc |
@@ -176,7 +176,7 @@ void NewAvatarButton::Update() { |
// the active profile is Guest. |
bool use_generic_button = (!browser_->profile()->IsGuestSession() && |
cache.GetNumberOfProfiles() == 1 && |
- cache.GetUserNameOfProfileAtIndex(0).empty()); |
+ !cache.ProfileIsAuthenticatedAtIndex(0)); |
SetText(use_generic_button ? base::string16() : |
profiles::GetAvatarButtonTextForProfile(browser_->profile())); |