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

Unified Diff: ash/common/session/session_controller.cc

Issue 2780963002: ash: Fix system tray avatar not updated regression (Closed)
Patch Set: resized_ -> resized_image_ Created 3 years, 9 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 | « ash/BUILD.gn ('k') | ash/common/session/session_state_observer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/session/session_controller.cc
diff --git a/ash/common/session/session_controller.cc b/ash/common/session/session_controller.cc
index e9038db3a0a8adb8ecfafded5483fc0aed6291d7..96af2665cb11e3307ce4742cc64567aab8a5093c 100644
--- a/ash/common/session/session_controller.cc
+++ b/ash/common/session/session_controller.cc
@@ -174,8 +174,8 @@ void SessionController::UpdateUserSession(mojom::UserSessionPtr user_session) {
}
*it = std::move(user_session);
- // TODO(xiyuan): Notify observers about meta change to replace things such as
- // NOTIFICATION_LOGIN_USER_IMAGE_CHANGED. http://crbug.com/670422
+ for (auto& observer : observers_)
+ observer.UserSessionUpdated((*it)->account_id);
}
void SessionController::SetUserSessionOrder(
« no previous file with comments | « ash/BUILD.gn ('k') | ash/common/session/session_state_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698