Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4965)

Unified Diff: chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm

Issue 1117453002: Add gaia_id to ProfileInfoCache. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix comments Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 b5df7c7d85a7280cabc1ceb1b7f8dbe1ea063fec..ba88a32f2b25823e313338eae03cdd1b73c28d6a 100644
--- a/chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm
+++ b/chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm
@@ -225,7 +225,7 @@ NSImage* GetImageFromResourceID(int resourceId) {
// profile is Guest.
bool useGenericButton = (!browser_->profile()->IsGuestSession() &&
cache.GetNumberOfProfiles() == 1 &&
- cache.GetUserNameOfProfileAtIndex(0).empty());
+ !cache.ProfileIsAuthenticatedAtIndex(0));
NSString* buttonTitle = base::SysUTF16ToNSString(useGenericButton ?

Powered by Google App Engine
This is Rietveld 408576698