Index: chrome/browser/ui/webui/ntp/ntp_login_handler.cc |
diff --git a/chrome/browser/ui/webui/ntp/ntp_login_handler.cc b/chrome/browser/ui/webui/ntp/ntp_login_handler.cc |
index 35a31b00d772c434a476ffda9619318342174343..4fca50ad3118d3f81c175ad0c0018f58e3eb5cc8 100644 |
--- a/chrome/browser/ui/webui/ntp/ntp_login_handler.cc |
+++ b/chrome/browser/ui/webui/ntp/ntp_login_handler.cc |
@@ -206,17 +206,18 @@ void NTPLoginHandler::UpdateLogin() { |
if (!username.empty()) { |
ProfileInfoCache& cache = |
g_browser_process->profile_manager()->GetProfileInfoCache(); |
- size_t profile_index = cache.GetIndexOfProfileWithPath(profile->GetPath()); |
- if (profile_index != std::string::npos) { |
+ |
+ ProfileInfoEntry entry; |
+ if (cache.GetInfoForProfile(profile->GetPath(), &entry)) { |
// Only show the profile picture and full name for the single profile |
// case. In the multi-profile case the profile picture is visible in the |
// title bar and the full name can be ambiguous. |
if (cache.GetNumberOfProfiles() == 1) { |
- string16 name = cache.GetGAIANameOfProfileAtIndex(profile_index); |
+ string16 name = entry.GAIA_full_name(); |
if (!name.empty()) |
header = CreateSpanWithClass(name, "profile-name"); |
const gfx::Image* image = |
- cache.GetGAIAPictureOfProfileAtIndex(profile_index); |
+ cache.GetGAIAPictureOfProfile(entry.path()); |
if (image) |
icon_url = webui::GetBitmapDataUrl(GetGAIAPictureForNTP(*image)); |
} |