OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/ui/webui/chromeos/login/signin_screen_handler.h" | 5 #include "chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <vector> | 10 #include <vector> |
(...skipping 1099 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1110 if (delegate_) | 1110 if (delegate_) |
1111 delegate_->Login(context, SigninSpecifics()); | 1111 delegate_->Login(context, SigninSpecifics()); |
1112 } | 1112 } |
1113 | 1113 |
1114 void SigninScreenHandler::HandleShowSupervisedUserCreationScreen() { | 1114 void SigninScreenHandler::HandleShowSupervisedUserCreationScreen() { |
1115 if (!user_manager::UserManager::Get()->AreSupervisedUsersAllowed()) { | 1115 if (!user_manager::UserManager::Get()->AreSupervisedUsersAllowed()) { |
1116 LOG(ERROR) << "Managed users not allowed."; | 1116 LOG(ERROR) << "Managed users not allowed."; |
1117 return; | 1117 return; |
1118 } | 1118 } |
1119 LoginDisplayHost::default_host()->StartWizard( | 1119 LoginDisplayHost::default_host()->StartWizard( |
1120 WizardController::kSupervisedUserCreationScreenName); | 1120 OobeScreen::SCREEN_CREATE_SUPERVISED_USER_FLOW); |
1121 } | 1121 } |
1122 | 1122 |
1123 void SigninScreenHandler::HandleLaunchPublicSession( | 1123 void SigninScreenHandler::HandleLaunchPublicSession( |
1124 const AccountId& account_id, | 1124 const AccountId& account_id, |
1125 const std::string& locale, | 1125 const std::string& locale, |
1126 const std::string& input_method) { | 1126 const std::string& input_method) { |
1127 if (!delegate_) | 1127 if (!delegate_) |
1128 return; | 1128 return; |
1129 | 1129 |
1130 UserContext context(user_manager::USER_TYPE_PUBLIC_ACCOUNT, account_id); | 1130 UserContext context(user_manager::USER_TYPE_PUBLIC_ACCOUNT, account_id); |
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1533 } | 1533 } |
1534 | 1534 |
1535 void SigninScreenHandler::OnFeedbackFinished() { | 1535 void SigninScreenHandler::OnFeedbackFinished() { |
1536 CallJS("login.UnrecoverableCryptohomeErrorScreen.resumeAfterFeedbackUI"); | 1536 CallJS("login.UnrecoverableCryptohomeErrorScreen.resumeAfterFeedbackUI"); |
1537 | 1537 |
1538 // Recreate user's cryptohome after the feedback is attempted. | 1538 // Recreate user's cryptohome after the feedback is attempted. |
1539 HandleResyncUserData(); | 1539 HandleResyncUserData(); |
1540 } | 1540 } |
1541 | 1541 |
1542 } // namespace chromeos | 1542 } // namespace chromeos |
OLD | NEW |