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

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: move the chrome messages to a common place 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
« no previous file with comments | « chrome/browser/ui/webui/options/manage_profile_handler.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 8c8471e032ffe0805ea3568b7770ce5ba6a9565a..d25446a76b31f943746294d088282ecc462484da 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() {
@@ -520,4 +523,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
« no previous file with comments | « chrome/browser/ui/webui/options/manage_profile_handler.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698