Index: chrome/browser/ui/webui/options/manage_profile_handler.cc |
diff --git a/chrome/browser/ui/webui/options/manage_profile_handler.cc b/chrome/browser/ui/webui/options/manage_profile_handler.cc |
index bc8c2d6094f30dc784b5da14ee273fa420c6e3ac..10b8536744976318a94f8315d6585e3b99704afb 100644 |
--- a/chrome/browser/ui/webui/options/manage_profile_handler.cc |
+++ b/chrome/browser/ui/webui/options/manage_profile_handler.cc |
@@ -32,6 +32,7 @@ |
#include "chrome/common/pref_names.h" |
#include "chrome/common/url_constants.h" |
#include "components/signin/core/browser/signin_manager.h" |
+#include "components/signin/core/common/profile_management_switches.h" |
#include "content/public/browser/browser_thread.h" |
#include "content/public/browser/notification_service.h" |
#include "content/public/browser/web_ui.h" |
@@ -348,6 +349,10 @@ void ManageProfileHandler::SetProfileIconAndName(const base::ListValue* args) { |
} |
} else if (profiles::IsDefaultAvatarIconUrl(icon_url, &new_icon_index)) { |
ProfileMetrics::LogProfileAvatarSelection(new_icon_index); |
+ |
+ if (switches::IsNewAvatarMenu()) |
+ profiles::DownloadHighResAvatarIfNeeded(new_icon_index); |
+ |
PrefService* pref_service = profile->GetPrefs(); |
// Updating the profile preference will cause the cache to be updated for |
// this preference. |