Commit f0d94437 authored by aruslan@chromium.org's avatar aruslan@chromium.org

[Android][Mirror] Ignore cached "default" names.

BUG=380191
NOTRY=True

Review URL: https://codereview.chromium.org/310853004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@274634 0039d316-1c4b-4281-b951-d872f2087c98
parent 26982fa4
...@@ -116,7 +116,9 @@ jstring GetCachedNameForPrimaryAccount(JNIEnv* env, ...@@ -116,7 +116,9 @@ jstring GetCachedNameForPrimaryAccount(JNIEnv* env,
const size_t index = info.GetIndexOfProfileWithPath(profile->GetPath()); const size_t index = info.GetIndexOfProfileWithPath(profile->GetPath());
base::string16 name; base::string16 name;
if (index != std::string::npos) {
if (index != std::string::npos &&
!info.ProfileIsUsingDefaultNameAtIndex(index)) {
name = info.GetGAIANameOfProfileAtIndex(index); name = info.GetGAIANameOfProfileAtIndex(index);
if (name.empty()) if (name.empty())
name = info.GetNameOfProfileAtIndex(index); name = info.GetNameOfProfileAtIndex(index);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment