Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5137)

Unified Diff: chrome/browser/profiles/profile_info_cache.cc

Issue 380643002: Profile picture doesn't display correctly after new profile has been created (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change by following the comment Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 a6f8d9abb02caa453cd2642ea2aa49105abb51bc..3caf2edc6e557ee10ab183cb32c769564b3dcd9b 100644
--- a/chrome/browser/profiles/profile_info_cache.cc
+++ b/chrome/browser/profiles/profile_info_cache.cc
@@ -233,6 +233,9 @@ void ProfileInfoCache::AddProfileToCache(
observer_list_,
OnProfileAdded(profile_path));
+ if (switches::IsNewAvatarMenu())
noms (inactive) 2014/07/11 13:47:56 I'm sorry, I didn't see this initially because the
Malcolm 2014/07/11 14:18:44 You are right, this should be done before notifica
noms (inactive) 2014/07/11 15:59:11 Default arguments are not allowed in Chromium, unf
+ DownloadHighResAvatar(icon_index, profile_path);
+
content::NotificationService::current()->Notify(
chrome::NOTIFICATION_PROFILE_CACHED_INFO_CHANGED,
content::NotificationService::AllSources(),
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698