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

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

Issue 6312160: Map Views to Profiles directly from their window, eliminating the need... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/screen_lock_view.h" 5 #include "chrome/browser/chromeos/login/screen_lock_view.h"
6 6
7 #include "base/utf_string_conversions.h" 7 #include "base/utf_string_conversions.h"
8 #include "chrome/browser/chromeos/login/rounded_rect_painter.h" 8 #include "chrome/browser/chromeos/login/rounded_rect_painter.h"
9 #include "chrome/browser/chromeos/login/screen_locker.h" 9 #include "chrome/browser/chromeos/login/screen_locker.h"
10 #include "chrome/browser/chromeos/login/user_manager.h" 10 #include "chrome/browser/chromeos/login/user_manager.h"
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 const NotificationDetails& details) { 211 const NotificationDetails& details) {
212 if (type != NotificationType::LOGIN_USER_IMAGE_CHANGED || !user_view_) 212 if (type != NotificationType::LOGIN_USER_IMAGE_CHANGED || !user_view_)
213 return; 213 return;
214 214
215 UserManager::User* user = Details<UserManager::User>(details).ptr(); 215 UserManager::User* user = Details<UserManager::User>(details).ptr();
216 if (screen_locker_->user().email() != user->email()) 216 if (screen_locker_->user().email() != user->email())
217 return; 217 return;
218 user_view_->SetImage(user->image(), user->image()); 218 user_view_->SetImage(user->image(), user->image());
219 } 219 }
220 220
221 void ScreenLockView::ViewHierarchyChanged(bool is_add,
222 views::View* parent,
223 views::View* child) {
224 if (is_add && this == child)
225 WizardAccessibilityHelper::GetInstance()->MaybeEnableAccessibility(this);
226 }
227
228 } // namespace chromeos 221 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/screen_lock_view.h ('k') | chrome/browser/chromeos/login/screen_locker_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698