| 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 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 | 320 |
| 321 bool WebUILoginDisplay::IsUserSigninCompleted() const { | 321 bool WebUILoginDisplay::IsUserSigninCompleted() const { |
| 322 return is_signin_completed(); | 322 return is_signin_completed(); |
| 323 } | 323 } |
| 324 | 324 |
| 325 void WebUILoginDisplay::SetDisplayEmail(const std::string& email) { | 325 void WebUILoginDisplay::SetDisplayEmail(const std::string& email) { |
| 326 if (delegate_) | 326 if (delegate_) |
| 327 delegate_->SetDisplayEmail(email); | 327 delegate_->SetDisplayEmail(email); |
| 328 } | 328 } |
| 329 | 329 |
| 330 void WebUILoginDisplay::SetDisplayAndGivenName(const std::string& display_name, |
| 331 const std::string& given_name) { |
| 332 if (delegate_) |
| 333 delegate_->SetDisplayAndGivenName(display_name, given_name); |
| 334 } |
| 335 |
| 330 void WebUILoginDisplay::Signout() { | 336 void WebUILoginDisplay::Signout() { |
| 331 delegate_->Signout(); | 337 delegate_->Signout(); |
| 332 } | 338 } |
| 333 | 339 |
| 334 void WebUILoginDisplay::OnUserActivity(const ui::Event* event) { | 340 void WebUILoginDisplay::OnUserActivity(const ui::Event* event) { |
| 335 if (delegate_) | 341 if (delegate_) |
| 336 delegate_->ResetAutoLoginTimer(); | 342 delegate_->ResetAutoLoginTimer(); |
| 337 } | 343 } |
| 338 | 344 |
| 339 bool WebUILoginDisplay::IsUserWhitelisted(const AccountId& account_id) { | 345 bool WebUILoginDisplay::IsUserWhitelisted(const AccountId& account_id) { |
| 340 DCHECK(delegate_); | 346 DCHECK(delegate_); |
| 341 if (delegate_) | 347 if (delegate_) |
| 342 return delegate_->IsUserWhitelisted(account_id); | 348 return delegate_->IsUserWhitelisted(account_id); |
| 343 return true; | 349 return true; |
| 344 } | 350 } |
| 345 | 351 |
| 346 } // namespace chromeos | 352 } // namespace chromeos |
| OLD | NEW |