Index: chrome/browser/ui/webui/signin/user_manager_screen_handler.cc |
diff --git a/chrome/browser/ui/webui/signin/user_manager_screen_handler.cc b/chrome/browser/ui/webui/signin/user_manager_screen_handler.cc |
index f3f79dd97862452551aa3a1e45ae9f6c16bf1a8b..95565ecc4684f5868cd07ca9903c24a1f8ff0a1b 100644 |
--- a/chrome/browser/ui/webui/signin/user_manager_screen_handler.cc |
+++ b/chrome/browser/ui/webui/signin/user_manager_screen_handler.cc |
@@ -120,7 +120,9 @@ size_t GetIndexOfProfileWithEmailAndName(const ProfileInfoCache& info_cache, |
const base::string16& name) { |
for (size_t i = 0; i < info_cache.GetNumberOfProfiles(); ++i) { |
if (info_cache.GetUserNameOfProfileAtIndex(i) == email && |
- (name.empty() || info_cache.GetNameOfProfileAtIndex(i) == name)) { |
+ (name.empty() || |
+ profiles::GetAvatarNameForProfile( |
+ info_cache.GetPathOfProfileAtIndex(i)) == name)) { |
return i; |
} |
} |