| Index: chrome/browser/profiles/profile_info_cache.cc
|
| diff --git a/chrome/browser/profiles/profile_info_cache.cc b/chrome/browser/profiles/profile_info_cache.cc
|
| index 3e7c05c3c2a4f4bd141d3e47e2ed662488ec0af5..0b01f095c8991206cf6b8a72effde167cbbb4038 100644
|
| --- a/chrome/browser/profiles/profile_info_cache.cc
|
| +++ b/chrome/browser/profiles/profile_info_cache.cc
|
| @@ -739,11 +739,22 @@ void ProfileInfoCache::SetProfileIsUsingDefaultNameAtIndex(
|
| if (value == ProfileIsUsingDefaultNameAtIndex(index))
|
| return;
|
|
|
| + base::string16 old_display_name = GetNameOfProfileAtIndex(index);
|
| +
|
| scoped_ptr<base::DictionaryValue> info(
|
| GetInfoForProfileAtIndex(index)->DeepCopy());
|
| info->SetBoolean(kIsUsingDefaultNameKey, value);
|
| // This takes ownership of |info|.
|
| SetInfoForProfileAtIndex(index, info.release());
|
| +
|
| + base::string16 new_display_name = GetNameOfProfileAtIndex(index);
|
| + const base::FilePath profile_path = GetPathOfProfileAtIndex(index);
|
| +
|
| + if (old_display_name != new_display_name) {
|
| + FOR_EACH_OBSERVER(ProfileInfoCacheObserver,
|
| + observer_list_,
|
| + OnProfileNameChanged(profile_path, old_display_name));
|
| + }
|
| }
|
|
|
| void ProfileInfoCache::SetProfileIsUsingDefaultAvatarAtIndex(
|
|
|