| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/signin_screen_controller.h" | 5 #include "chrome/browser/chromeos/login/signin_screen_controller.h" |
| 6 | 6 |
| 7 #include "chrome/browser/chrome_notification_types.h" | 7 #include "chrome/browser/chrome_notification_types.h" |
| 8 #include "chrome/browser/chromeos/login/lock/screen_locker.h" | 8 #include "chrome/browser/chromeos/login/lock/screen_locker.h" |
| 9 #include "chrome/browser/chromeos/login/lock/webui_screen_locker.h" | 9 #include "chrome/browser/chromeos/login/lock/webui_screen_locker.h" |
| 10 #include "chrome/browser/chromeos/login/screens/chrome_user_selection_screen.h" | 10 #include "chrome/browser/chromeos/login/screens/chrome_user_selection_screen.h" |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 bool show_guest) { | 53 bool show_guest) { |
| 54 // TODO(antrim) : This dependency should be inverted, screen should ask about | 54 // TODO(antrim) : This dependency should be inverted, screen should ask about |
| 55 // users. | 55 // users. |
| 56 user_selection_screen_->Init(users, show_guest); | 56 user_selection_screen_->Init(users, show_guest); |
| 57 } | 57 } |
| 58 | 58 |
| 59 void SignInScreenController::OnSigninScreenReady() { | 59 void SignInScreenController::OnSigninScreenReady() { |
| 60 gaia_screen_->MaybePreloadAuthExtension(); | 60 gaia_screen_->MaybePreloadAuthExtension(); |
| 61 user_selection_screen_->InitEasyUnlock(); | 61 user_selection_screen_->InitEasyUnlock(); |
| 62 if (ScreenLocker::default_screen_locker()) | 62 if (ScreenLocker::default_screen_locker()) |
| 63 ScreenLocker::default_screen_locker()->web_ui()->OnLockWebUIReady(); | 63 ScreenLocker::default_screen_locker()->delegate()->OnLockWebUIReady(); |
| 64 } | 64 } |
| 65 | 65 |
| 66 void SignInScreenController::RemoveUser(const AccountId& account_id) { | 66 void SignInScreenController::RemoveUser(const AccountId& account_id) { |
| 67 user_manager::UserManager::Get()->RemoveUser(account_id, this); | 67 user_manager::UserManager::Get()->RemoveUser(account_id, this); |
| 68 } | 68 } |
| 69 | 69 |
| 70 void SignInScreenController::OnBeforeUserRemoved(const AccountId& account_id) { | 70 void SignInScreenController::OnBeforeUserRemoved(const AccountId& account_id) { |
| 71 user_selection_screen_->OnBeforeUserRemoved(account_id); | 71 user_selection_screen_->OnBeforeUserRemoved(account_id); |
| 72 } | 72 } |
| 73 | 73 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 102 | 102 |
| 103 // Stop listening to any notification once session has started. | 103 // Stop listening to any notification once session has started. |
| 104 // Sign in screen objects are marked for deletion with DeleteSoon so | 104 // Sign in screen objects are marked for deletion with DeleteSoon so |
| 105 // make sure no object would be used after session has started. | 105 // make sure no object would be used after session has started. |
| 106 // http://crbug.com/125276 | 106 // http://crbug.com/125276 |
| 107 registrar_.RemoveAll(); | 107 registrar_.RemoveAll(); |
| 108 user_manager::UserManager::Get()->RemoveObserver(this); | 108 user_manager::UserManager::Get()->RemoveObserver(this); |
| 109 } | 109 } |
| 110 | 110 |
| 111 } // namespace chromeos | 111 } // namespace chromeos |
| OLD | NEW |