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..99ba6cebd4871b82664859e671b50b5175073e5a 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,11 @@ void ManageProfileHandler::SetProfileIconAndName(const base::ListValue* args) { |
} |
} else if (profiles::IsDefaultAvatarIconUrl(icon_url, &new_icon_index)) { |
ProfileMetrics::LogProfileAvatarSelection(new_icon_index); |
+ |
+ if (switches::IsNewAvatarMenu()) { |
msw
2014/04/28 20:46:37
nit: drop unnecessary braces.
noms (inactive)
2014/04/29 19:12:27
Done.
|
+ profiles::DownloadHighResAvatarIfNeeded(new_icon_index); |
+ } |
+ |
PrefService* pref_service = profile->GetPrefs(); |
// Updating the profile preference will cause the cache to be updated for |
// this preference. |