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

Unified Diff: chrome/browser/chromeos/login/screens/user_selection_screen.cc

Issue 2555453003: cros: HTML fixes needed to reinitializing an existing lock WebUI. (Closed)
Patch Set: Address comments Created 4 years 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 | « no previous file | chrome/browser/chromeos/login/signin_screen_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/screens/user_selection_screen.cc
diff --git a/chrome/browser/chromeos/login/screens/user_selection_screen.cc b/chrome/browser/chromeos/login/screens/user_selection_screen.cc
index 9ebe8f375ad308cc8361b73fae70b83f20036148..e5e2949b9f6fd44d8facae6b69ea17cf72c388e1 100644
--- a/chrome/browser/chromeos/login/screens/user_selection_screen.cc
+++ b/chrome/browser/chromeos/login/screens/user_selection_screen.cc
@@ -269,6 +269,13 @@ bool UserSelectionScreen::ShouldForceOnlineSignIn(
void UserSelectionScreen::SetHandler(LoginDisplayWebUIHandler* handler) {
handler_ = handler;
+
+ if (handler_) {
+ // Forcibly refresh all of the user images, as the |handler_| instance may
+ // have been reused.
+ for (user_manager::User* user : users_)
+ handler_->OnUserImageChanged(*user);
+ }
}
void UserSelectionScreen::SetView(UserBoardView* view) {
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/signin_screen_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698