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

Unified Diff: chrome/browser/ui/webui/options/manage_profile_handler.cc

Issue 267253004: Fetch a new GAIA picture every time chrome://settings/manageProfile comes up. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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
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..9fdf09b453856b0c85c89210c6b87b7419939aca 100644
--- a/chrome/browser/ui/webui/options/manage_profile_handler.cc
+++ b/chrome/browser/ui/webui/options/manage_profile_handler.cc
@@ -182,6 +182,9 @@ void ManageProfileHandler::RegisterMessages() {
web_ui()->RegisterMessageCallback("removeProfileShortcut",
base::Bind(&ManageProfileHandler::RemoveProfileShortcut,
base::Unretained(this)));
+ web_ui()->RegisterMessageCallback("refreshGAIAPicture",
+ base::Bind(&ManageProfileHandler::RefreshGAIAPicture,
+ base::Unretained(this)));
}
void ManageProfileHandler::Uninitialize() {
@@ -521,4 +524,8 @@ void ManageProfileHandler::RemoveProfileShortcut(const base::ListValue* args) {
OnHasProfileShortcuts(false);
}
+void ManageProfileHandler::RefreshGAIAPicture(const base::ListValue* args) {
+ profiles::UpdateGAIAProfilePhotoIfNeeded(Profile::FromWebUI(web_ui()));
+}
+
} // namespace options

Powered by Google App Engine
This is Rietveld 408576698