Index: chrome/browser/android/profiles/profile_downloader_android.cc |
diff --git a/chrome/browser/android/profiles/profile_downloader_android.cc b/chrome/browser/android/profiles/profile_downloader_android.cc |
index b49a808d1f704fc90c6ac0ae83171b69c07b2f63..c6d4785fd1cec985a05acbbe5377fe369b89feff 100644 |
--- a/chrome/browser/android/profiles/profile_downloader_android.cc |
+++ b/chrome/browser/android/profiles/profile_downloader_android.cc |
@@ -116,13 +116,8 @@ jstring GetCachedNameForPrimaryAccount(JNIEnv* env, |
const size_t index = info.GetIndexOfProfileWithPath(profile->GetPath()); |
base::string16 name; |
- |
- if (index != std::string::npos && |
- !info.ProfileIsUsingDefaultNameAtIndex(index)) { |
+ if (index != std::string::npos) |
name = info.GetGAIANameOfProfileAtIndex(index); |
- if (name.empty()) |
- name = info.GetNameOfProfileAtIndex(index); |
- } |
return base::android::ConvertUTF16ToJavaString(env, name).Release(); |
} |