| 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/enterprise_oauth_enrollment_scr
een_handler.h" | 5 #include "chrome/browser/ui/webui/chromeos/login/enterprise_oauth_enrollment_scr
een_handler.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 ShowError(IDS_ENTERPRISE_ENROLLMENT_ACCOUNT_ERROR, true); | 240 ShowError(IDS_ENTERPRISE_ENROLLMENT_ACCOUNT_ERROR, true); |
| 241 break; | 241 break; |
| 242 default: | 242 default: |
| 243 ShowErrorMessage( | 243 ShowErrorMessage( |
| 244 l10n_util::GetStringFUTF8( | 244 l10n_util::GetStringFUTF8( |
| 245 IDS_ENTERPRISE_ENROLLMENT_STATUS_REGISTRATION_FAILED, | 245 IDS_ENTERPRISE_ENROLLMENT_STATUS_REGISTRATION_FAILED, |
| 246 policy::FormatDeviceManagementStatus(status.client_status())), | 246 policy::FormatDeviceManagementStatus(status.client_status())), |
| 247 true); | 247 true); |
| 248 } | 248 } |
| 249 return; | 249 return; |
| 250 case policy::EnrollmentStatus::STATUS_ROBOT_AUTH_FETCH_FAILED: |
| 251 ShowError( |
| 252 IDS_ENTERPRISE_ENROLLMENT_STATUS_REGISTRATION_ROBOT_AUTH_FETCH_FAILED, |
| 253 false); |
| 254 return; |
| 255 case policy::EnrollmentStatus::STATUS_ROBOT_REFRESH_FETCH_FAILED: |
| 256 ShowError( |
| 257 IDS_ENTERPRISE_ENROLLMENT_STATUS_REGISTRATION_ROBOT_REFRESH_FETCH_FAIL
ED, |
| 258 false); |
| 259 return; |
| 250 case policy::EnrollmentStatus::STATUS_REGISTRATION_BAD_MODE: | 260 case policy::EnrollmentStatus::STATUS_REGISTRATION_BAD_MODE: |
| 251 ShowError(IDS_ENTERPRISE_ENROLLMENT_STATUS_REGISTRATION_BAD_MODE, false); | 261 ShowError(IDS_ENTERPRISE_ENROLLMENT_STATUS_REGISTRATION_BAD_MODE, false); |
| 252 return; | 262 return; |
| 253 case policy::EnrollmentStatus::STATUS_POLICY_FETCH_FAILED: | 263 case policy::EnrollmentStatus::STATUS_POLICY_FETCH_FAILED: |
| 254 ShowErrorMessage( | 264 ShowErrorMessage( |
| 255 l10n_util::GetStringFUTF8( | 265 l10n_util::GetStringFUTF8( |
| 256 IDS_ENTERPRISE_ENROLLMENT_STATUS_POLICY_FETCH_FAILED, | 266 IDS_ENTERPRISE_ENROLLMENT_STATUS_POLICY_FETCH_FAILED, |
| 257 policy::FormatDeviceManagementStatus(status.client_status())), | 267 policy::FormatDeviceManagementStatus(status.client_status())), |
| 258 true); | 268 true); |
| 259 return; | 269 return; |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 521 screen_data.SetBoolean("is_auto_enrollment", is_auto_enrollment_); | 531 screen_data.SetBoolean("is_auto_enrollment", is_auto_enrollment_); |
| 522 if (!test_email_.empty()) { | 532 if (!test_email_.empty()) { |
| 523 screen_data.SetString("test_email", test_email_); | 533 screen_data.SetString("test_email", test_email_); |
| 524 screen_data.SetString("test_password", test_password_); | 534 screen_data.SetString("test_password", test_password_); |
| 525 } | 535 } |
| 526 | 536 |
| 527 ShowScreen(OobeUI::kScreenOobeEnrollment, &screen_data); | 537 ShowScreen(OobeUI::kScreenOobeEnrollment, &screen_data); |
| 528 } | 538 } |
| 529 | 539 |
| 530 } // namespace chromeos | 540 } // namespace chromeos |
| OLD | NEW |