| 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/ui/webui/chromeos/login/enrollment_screen_handler.h" | 5 #include "chrome/browser/ui/webui/chromeos/login/enrollment_screen_handler.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/values.h" | 10 #include "base/values.h" |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 ShowError(IDS_ENTERPRISE_ENROLLMENT_ACCOUNT_ERROR, true); | 228 ShowError(IDS_ENTERPRISE_ENROLLMENT_ACCOUNT_ERROR, true); |
| 229 break; | 229 break; |
| 230 default: | 230 default: |
| 231 ShowErrorMessage( | 231 ShowErrorMessage( |
| 232 l10n_util::GetStringFUTF8( | 232 l10n_util::GetStringFUTF8( |
| 233 IDS_ENTERPRISE_ENROLLMENT_STATUS_REGISTRATION_FAILED, | 233 IDS_ENTERPRISE_ENROLLMENT_STATUS_REGISTRATION_FAILED, |
| 234 policy::FormatDeviceManagementStatus(status.client_status())), | 234 policy::FormatDeviceManagementStatus(status.client_status())), |
| 235 true); | 235 true); |
| 236 } | 236 } |
| 237 return; | 237 return; |
| 238 case policy::EnrollmentStatus::STATUS_ROBOT_AUTH_FETCH_FAILED: |
| 239 ShowError( |
| 240 IDS_ENTERPRISE_ENROLLMENT_STATUS_REGISTRATION_ROBOT_AUTH_FETCH_FAILED, |
| 241 false); |
| 242 return; |
| 243 case policy::EnrollmentStatus::STATUS_ROBOT_REFRESH_FETCH_FAILED: |
| 244 ShowError( |
| 245 IDS_ENTERPRISE_ENROLLMENT_STATUS_REGISTRATION_ROBOT_REFRESH_FETCH_FAIL
ED, |
| 246 false); |
| 247 return; |
| 238 case policy::EnrollmentStatus::STATUS_REGISTRATION_BAD_MODE: | 248 case policy::EnrollmentStatus::STATUS_REGISTRATION_BAD_MODE: |
| 239 ShowError(IDS_ENTERPRISE_ENROLLMENT_STATUS_REGISTRATION_BAD_MODE, false); | 249 ShowError(IDS_ENTERPRISE_ENROLLMENT_STATUS_REGISTRATION_BAD_MODE, false); |
| 240 return; | 250 return; |
| 241 case policy::EnrollmentStatus::STATUS_POLICY_FETCH_FAILED: | 251 case policy::EnrollmentStatus::STATUS_POLICY_FETCH_FAILED: |
| 242 ShowErrorMessage( | 252 ShowErrorMessage( |
| 243 l10n_util::GetStringFUTF8( | 253 l10n_util::GetStringFUTF8( |
| 244 IDS_ENTERPRISE_ENROLLMENT_STATUS_POLICY_FETCH_FAILED, | 254 IDS_ENTERPRISE_ENROLLMENT_STATUS_POLICY_FETCH_FAILED, |
| 245 policy::FormatDeviceManagementStatus(status.client_status())), | 255 policy::FormatDeviceManagementStatus(status.client_status())), |
| 246 true); | 256 true); |
| 247 return; | 257 return; |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 471 screen_data.SetBoolean("is_auto_enrollment", is_auto_enrollment_); | 481 screen_data.SetBoolean("is_auto_enrollment", is_auto_enrollment_); |
| 472 if (!test_email_.empty()) { | 482 if (!test_email_.empty()) { |
| 473 screen_data.SetString("test_email", test_email_); | 483 screen_data.SetString("test_email", test_email_); |
| 474 screen_data.SetString("test_password", test_password_); | 484 screen_data.SetString("test_password", test_password_); |
| 475 } | 485 } |
| 476 | 486 |
| 477 ShowScreen(OobeUI::kScreenOobeEnrollment, &screen_data); | 487 ShowScreen(OobeUI::kScreenOobeEnrollment, &screen_data); |
| 478 } | 488 } |
| 479 | 489 |
| 480 } // namespace chromeos | 490 } // namespace chromeos |
| OLD | NEW |