OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/ui/webui_login_display.h" | 5 #include "chrome/browser/chromeos/login/ui/webui_login_display.h" |
6 | 6 |
7 #include "chrome/browser/chromeos/accessibility/accessibility_manager.h" | 7 #include "chrome/browser/chromeos/accessibility/accessibility_manager.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/screens/chrome_user_selection_screen.h" | 9 #include "chrome/browser/chromeos/login/screens/chrome_user_selection_screen.h" |
10 #include "chrome/browser/chromeos/login/signin_screen_controller.h" | 10 #include "chrome/browser/chromeos/login/signin_screen_controller.h" |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 user_manager::SignInAccountId()); | 231 user_manager::SignInAccountId()); |
232 } | 232 } |
233 | 233 |
234 void WebUILoginDisplay::OnSigninScreenReady() { | 234 void WebUILoginDisplay::OnSigninScreenReady() { |
235 SignInScreenController::Get()->OnSigninScreenReady(); | 235 SignInScreenController::Get()->OnSigninScreenReady(); |
236 | 236 |
237 if (delegate_) | 237 if (delegate_) |
238 delegate_->OnSigninScreenReady(); | 238 delegate_->OnSigninScreenReady(); |
239 } | 239 } |
240 | 240 |
| 241 void WebUILoginDisplay::OnGaiaScreenReady() { |
| 242 if (delegate_) |
| 243 delegate_->OnGaiaScreenReady(); |
| 244 } |
| 245 |
241 void WebUILoginDisplay::RemoveUser(const AccountId& account_id) { | 246 void WebUILoginDisplay::RemoveUser(const AccountId& account_id) { |
242 SignInScreenController::Get()->RemoveUser(account_id); | 247 SignInScreenController::Get()->RemoveUser(account_id); |
243 } | 248 } |
244 | 249 |
245 void WebUILoginDisplay::ResyncUserData() { | 250 void WebUILoginDisplay::ResyncUserData() { |
246 DCHECK(delegate_); | 251 DCHECK(delegate_); |
247 if (delegate_) | 252 if (delegate_) |
248 delegate_->ResyncUserData(); | 253 delegate_->ResyncUserData(); |
249 } | 254 } |
250 | 255 |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
329 } | 334 } |
330 | 335 |
331 bool WebUILoginDisplay::IsUserWhitelisted(const AccountId& account_id) { | 336 bool WebUILoginDisplay::IsUserWhitelisted(const AccountId& account_id) { |
332 DCHECK(delegate_); | 337 DCHECK(delegate_); |
333 if (delegate_) | 338 if (delegate_) |
334 return delegate_->IsUserWhitelisted(account_id); | 339 return delegate_->IsUserWhitelisted(account_id); |
335 return true; | 340 return true; |
336 } | 341 } |
337 | 342 |
338 } // namespace chromeos | 343 } // namespace chromeos |
OLD | NEW |