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 0ec319952ffc16825d5df877a1dcc725111c3bbc..b49a808d1f704fc90c6ac0ae83171b69c07b2f63 100644 |
--- a/chrome/browser/android/profiles/profile_downloader_android.cc |
+++ b/chrome/browser/android/profiles/profile_downloader_android.cc |
@@ -116,7 +116,9 @@ jstring GetCachedNameForPrimaryAccount(JNIEnv* env, |
const size_t index = info.GetIndexOfProfileWithPath(profile->GetPath()); |
base::string16 name; |
- if (index != std::string::npos) { |
+ |
+ if (index != std::string::npos && |
+ !info.ProfileIsUsingDefaultNameAtIndex(index)) { |
name = info.GetGAIANameOfProfileAtIndex(index); |
if (name.empty()) |
name = info.GetNameOfProfileAtIndex(index); |