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

Side by Side Diff: chrome/browser/chromeos/login/webui_login_display.cc

Issue 8537015: [cros] User images are updated on the login screen. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/resources/chromeos/login/screen_account_picker.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/chromeos/login/webui_login_display.h" 5 #include "chrome/browser/chromeos/login/webui_login_display.h"
6 6
7 #include "chrome/browser/chromeos/input_method/xkeyboard.h" 7 #include "chrome/browser/chromeos/input_method/xkeyboard.h"
8 #include "chrome/browser/chromeos/login/user_manager.h" 8 #include "chrome/browser/chromeos/login/user_manager.h"
9 #include "chrome/browser/chromeos/login/webui_login_view.h" 9 #include "chrome/browser/chromeos/login/webui_login_view.h"
10 #include "chrome/browser/chromeos/login/wizard_accessibility_helper.h" 10 #include "chrome/browser/chromeos/login/wizard_accessibility_helper.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 void WebUILoginDisplay::OnBeforeUserRemoved(const std::string& username) { 49 void WebUILoginDisplay::OnBeforeUserRemoved(const std::string& username) {
50 for (UserList::iterator it = users_.begin(); it != users_.end(); ++it) { 50 for (UserList::iterator it = users_.begin(); it != users_.end(); ++it) {
51 if ((*it)->email() == username) { 51 if ((*it)->email() == username) {
52 users_.erase(it); 52 users_.erase(it);
53 break; 53 break;
54 } 54 }
55 } 55 }
56 } 56 }
57 57
58 void WebUILoginDisplay::OnUserImageChanged(const User& user) { 58 void WebUILoginDisplay::OnUserImageChanged(const User& user) {
59 // TODO(rharrison): Update the user in the user vector 59 DCHECK(webui_handler_);
60 // TODO(rharrison): Push the change to WebUI Login screen 60 webui_handler_->OnUserImageChanged(user);
61 } 61 }
62 62
63 void WebUILoginDisplay::OnUserRemoved(const std::string& username) { 63 void WebUILoginDisplay::OnUserRemoved(const std::string& username) {
64 DCHECK(webui_handler_); 64 DCHECK(webui_handler_);
65 webui_handler_->OnUserRemoved(username); 65 webui_handler_->OnUserRemoved(username);
66 } 66 }
67 67
68 void WebUILoginDisplay::OnFadeOut() { 68 void WebUILoginDisplay::OnFadeOut() {
69 } 69 }
70 70
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 191
192 bool WebUILoginDisplay::IsShowGuest() const { 192 bool WebUILoginDisplay::IsShowGuest() const {
193 return show_guest_; 193 return show_guest_;
194 } 194 }
195 195
196 bool WebUILoginDisplay::IsShowNewUser() const { 196 bool WebUILoginDisplay::IsShowNewUser() const {
197 return show_new_user_; 197 return show_new_user_;
198 } 198 }
199 199
200 } // namespace chromeos 200 } // namespace chromeos
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/chromeos/login/screen_account_picker.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698