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

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: s/GAIA/Gaia/g 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..8058aa0cb0739a41400f7d9dde5b85d8c04063af 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