Index: chrome/browser/profiles/profiles_state.cc |
diff --git a/chrome/browser/profiles/profiles_state.cc b/chrome/browser/profiles/profiles_state.cc |
index 316527136fc45b5437196ce901e6b8507bd94d96..31bc726c8f92ca8436a8a308456db198047f173e 100644 |
--- a/chrome/browser/profiles/profiles_state.cc |
+++ b/chrome/browser/profiles/profiles_state.cc |
@@ -69,9 +69,10 @@ string16 GetActiveProfileDisplayName(Browser* browser) { |
} else { |
ProfileInfoCache& cache = |
g_browser_process->profile_manager()->GetProfileInfoCache(); |
- size_t index = cache.GetIndexOfProfileWithPath(profile->GetPath()); |
- if (index != std::string::npos) |
- profile_name = cache.GetNameOfProfileAtIndex(index); |
+ |
+ ProfileInfoEntry entry; |
+ if (cache.GetInfoForProfile(profile->GetPath(), &entry)) |
+ profile_name = entry.GetDisplayName(); |
} |
return profile_name; |
} |