| 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 "ash/common/system/chromeos/devicetype_utils.h" | 9 #include "ash/common/system/chromeos/devicetype_utils.h" |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 355 return; | 355 return; |
| 356 case policy::EnrollmentStatus::NO_MACHINE_IDENTIFICATION: | 356 case policy::EnrollmentStatus::NO_MACHINE_IDENTIFICATION: |
| 357 ShowError(IDS_ENTERPRISE_ENROLLMENT_STATUS_NO_MACHINE_IDENTIFICATION, | 357 ShowError(IDS_ENTERPRISE_ENROLLMENT_STATUS_NO_MACHINE_IDENTIFICATION, |
| 358 false); | 358 false); |
| 359 return; | 359 return; |
| 360 case policy::EnrollmentStatus::ACTIVE_DIRECTORY_POLICY_FETCH_FAILED: | 360 case policy::EnrollmentStatus::ACTIVE_DIRECTORY_POLICY_FETCH_FAILED: |
| 361 ShowError(IDS_ENTERPRISE_ENROLLMENT_ERROR_ACTIVE_DIRECTORY_POLICY_FETCH, | 361 ShowError(IDS_ENTERPRISE_ENROLLMENT_ERROR_ACTIVE_DIRECTORY_POLICY_FETCH, |
| 362 false); | 362 false); |
| 363 return; | 363 return; |
| 364 case policy::EnrollmentStatus::DM_TOKEN_STORE_FAILED: | 364 case policy::EnrollmentStatus::DM_TOKEN_STORE_FAILED: |
| 365 ShowError(IDS_ENTERPRISE_ENROLLMENT_ERROR_STORE_DM_TOKEN_FAILED, false); | 365 ShowError(IDS_ENTERPRISE_ENROLLMENT_ERROR_SAVE_DEVICE_CONFIGURATION, |
| 366 false); |
| 366 return; | 367 return; |
| 367 } | 368 } |
| 368 NOTREACHED(); | 369 NOTREACHED(); |
| 369 } | 370 } |
| 370 | 371 |
| 371 // EnrollmentScreenHandler BaseScreenHandler implementation ----- | 372 // EnrollmentScreenHandler BaseScreenHandler implementation ----- |
| 372 | 373 |
| 373 void EnrollmentScreenHandler::Initialize() { | 374 void EnrollmentScreenHandler::Initialize() { |
| 374 if (show_on_init_) { | 375 if (show_on_init_) { |
| 375 Show(); | 376 Show(); |
| (...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 692 | 693 |
| 693 ShowScreenWithData(OobeScreen::SCREEN_OOBE_ENROLLMENT, &screen_data); | 694 ShowScreenWithData(OobeScreen::SCREEN_OOBE_ENROLLMENT, &screen_data); |
| 694 if (first_show_) { | 695 if (first_show_) { |
| 695 first_show_ = false; | 696 first_show_ = false; |
| 696 UpdateStateInternal(NetworkError::ERROR_REASON_UPDATE, true); | 697 UpdateStateInternal(NetworkError::ERROR_REASON_UPDATE, true); |
| 697 } | 698 } |
| 698 histogram_helper_->OnScreenShow(); | 699 histogram_helper_->OnScreenShow(); |
| 699 } | 700 } |
| 700 | 701 |
| 701 } // namespace chromeos | 702 } // namespace chromeos |
| OLD | NEW |