Commit edb96f4c authored by Thomas Tangl's avatar Thomas Tangl Committed by Commit Bot

[Dice] Update settings when account image is updated

When the account image is updated in the background,
settings is now notified to make changes accordingly.

Bug: 882384
Change-Id: I05000533de1205fc5b9d9a9500b4c05f088e8923
Reviewed-on: https://chromium-review.googlesource.com/1238501Reviewed-by: default avatarScott Chen <scottchen@chromium.org>
Commit-Queue: Thomas Tangl <tangltom@chromium.org>
Cr-Commit-Position: refs/heads/master@{#593443}
parent 42ccf211
...@@ -484,6 +484,11 @@ void PeopleHandler::OnAccountUpdated(const AccountInfo& info) { ...@@ -484,6 +484,11 @@ void PeopleHandler::OnAccountUpdated(const AccountInfo& info) {
FireWebUIListener("stored-accounts-updated", *GetStoredAccountsList()); FireWebUIListener("stored-accounts-updated", *GetStoredAccountsList());
} }
void PeopleHandler::OnAccountImageUpdated(const std::string& account_id,
const gfx::Image& image) {
FireWebUIListener("stored-accounts-updated", *GetStoredAccountsList());
}
void PeopleHandler::OnAccountRemoved(const AccountInfo& info) { void PeopleHandler::OnAccountRemoved(const AccountInfo& info) {
FireWebUIListener("stored-accounts-updated", *GetStoredAccountsList()); FireWebUIListener("stored-accounts-updated", *GetStoredAccountsList());
} }
......
...@@ -145,6 +145,8 @@ class PeopleHandler : public SettingsPageUIHandler, ...@@ -145,6 +145,8 @@ class PeopleHandler : public SettingsPageUIHandler,
#if BUILDFLAG(ENABLE_DICE_SUPPORT) #if BUILDFLAG(ENABLE_DICE_SUPPORT)
// AccountTrackerService::Observer implementation. // AccountTrackerService::Observer implementation.
void OnAccountUpdated(const AccountInfo& info) override; void OnAccountUpdated(const AccountInfo& info) override;
void OnAccountImageUpdated(const std::string& account_id,
const gfx::Image& image) override;
void OnAccountRemoved(const AccountInfo& info) override; void OnAccountRemoved(const AccountInfo& info) override;
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment