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/wizard_controller.h" | 5 #include "chrome/browser/chromeos/login/wizard_controller.h" |
6 | 6 |
7 #include <signal.h> | 7 #include <signal.h> |
8 #include <stdlib.h> | 8 #include <stdlib.h> |
9 #include <sys/types.h> | 9 #include <sys/types.h> |
10 | 10 |
(...skipping 1001 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1012 OnHostPairingFinished(); | 1012 OnHostPairingFinished(); |
1013 break; | 1013 break; |
1014 case DEVICE_NOT_DISABLED: | 1014 case DEVICE_NOT_DISABLED: |
1015 OnDeviceNotDisabled(); | 1015 OnDeviceNotDisabled(); |
1016 break; | 1016 break; |
1017 default: | 1017 default: |
1018 NOTREACHED(); | 1018 NOTREACHED(); |
1019 } | 1019 } |
1020 } | 1020 } |
1021 | 1021 |
1022 void WizardController::OnSetUserNamePassword(const std::string& username, | |
1023 const std::string& password) { | |
1024 username_ = username; | |
1025 password_ = password; | |
1026 } | |
1027 | |
1028 void WizardController::ShowErrorScreen() { | 1022 void WizardController::ShowErrorScreen() { |
1029 VLOG(1) << "Showing error screen."; | 1023 VLOG(1) << "Showing error screen."; |
1030 SetCurrentScreen(GetScreen(kErrorScreenName)); | 1024 SetCurrentScreen(GetScreen(kErrorScreenName)); |
1031 } | 1025 } |
1032 | 1026 |
1033 void WizardController::HideErrorScreen(BaseScreen* parent_screen) { | 1027 void WizardController::HideErrorScreen(BaseScreen* parent_screen) { |
1034 DCHECK(parent_screen); | 1028 DCHECK(parent_screen); |
1035 VLOG(1) << "Hiding error screen."; | 1029 VLOG(1) << "Hiding error screen."; |
1036 SetCurrentScreen(parent_screen); | 1030 SetCurrentScreen(parent_screen); |
1037 } | 1031 } |
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1302 if (accepted_eula) // Always true. | 1296 if (accepted_eula) // Always true. |
1303 StartupUtils::MarkEulaAccepted(); | 1297 StartupUtils::MarkEulaAccepted(); |
1304 SetUsageStatisticsReporting(send_reports); | 1298 SetUsageStatisticsReporting(send_reports); |
1305 NetworkScreenActor* network_actor = oobe_display_->GetNetworkScreenActor(); | 1299 NetworkScreenActor* network_actor = oobe_display_->GetNetworkScreenActor(); |
1306 network_actor->SetApplicationLocale(lang); | 1300 network_actor->SetApplicationLocale(lang); |
1307 network_actor->SetTimezone(timezone); | 1301 network_actor->SetTimezone(timezone); |
1308 network_actor->SetInputMethod(keyboard_layout); | 1302 network_actor->SetInputMethod(keyboard_layout); |
1309 } | 1303 } |
1310 | 1304 |
1311 } // namespace chromeos | 1305 } // namespace chromeos |
OLD | NEW |