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 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 login::SignInAccountId().GetUserEmail()); | 241 login::SignInAccountId().GetUserEmail()); |
242 } | 242 } |
243 | 243 |
244 void WebUILoginDisplay::OnSigninScreenReady() { | 244 void WebUILoginDisplay::OnSigninScreenReady() { |
245 SignInScreenController::Get()->OnSigninScreenReady(); | 245 SignInScreenController::Get()->OnSigninScreenReady(); |
246 | 246 |
247 if (delegate_) | 247 if (delegate_) |
248 delegate_->OnSigninScreenReady(); | 248 delegate_->OnSigninScreenReady(); |
249 } | 249 } |
250 | 250 |
251 void WebUILoginDisplay::RemoveUser(const std::string& user_id) { | 251 void WebUILoginDisplay::RemoveUser(const AccountId& account_id) { |
252 SignInScreenController::Get()->RemoveUser(user_id); | 252 SignInScreenController::Get()->RemoveUser(account_id); |
253 } | 253 } |
254 | 254 |
255 void WebUILoginDisplay::ResyncUserData() { | 255 void WebUILoginDisplay::ResyncUserData() { |
256 DCHECK(delegate_); | 256 DCHECK(delegate_); |
257 if (delegate_) | 257 if (delegate_) |
258 delegate_->ResyncUserData(); | 258 delegate_->ResyncUserData(); |
259 } | 259 } |
260 | 260 |
261 void WebUILoginDisplay::ShowEnterpriseEnrollmentScreen() { | 261 void WebUILoginDisplay::ShowEnterpriseEnrollmentScreen() { |
262 if (delegate_) | 262 if (delegate_) |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
327 } | 327 } |
328 | 328 |
329 bool WebUILoginDisplay::IsUserWhitelisted(const std::string& user_id) { | 329 bool WebUILoginDisplay::IsUserWhitelisted(const std::string& user_id) { |
330 DCHECK(delegate_); | 330 DCHECK(delegate_); |
331 if (delegate_) | 331 if (delegate_) |
332 return delegate_->IsUserWhitelisted(user_id); | 332 return delegate_->IsUserWhitelisted(user_id); |
333 return true; | 333 return true; |
334 } | 334 } |
335 | 335 |
336 } // namespace chromeos | 336 } // namespace chromeos |
OLD | NEW |