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 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
375 true); | 375 true); |
376 NOTREACHED(); | 376 NOTREACHED(); |
377 return; | 377 return; |
378 case policy::EnrollmentStatus::STATUS_ATTRIBUTE_UPDATE_FAILED: | 378 case policy::EnrollmentStatus::STATUS_ATTRIBUTE_UPDATE_FAILED: |
379 ShowErrorForDevice(IDS_ENTERPRISE_ENROLLMENT_ATTRIBUTE_ERROR, false); | 379 ShowErrorForDevice(IDS_ENTERPRISE_ENROLLMENT_ATTRIBUTE_ERROR, false); |
380 return; | 380 return; |
381 case policy::EnrollmentStatus::STATUS_NO_MACHINE_IDENTIFICATION: | 381 case policy::EnrollmentStatus::STATUS_NO_MACHINE_IDENTIFICATION: |
382 ShowError(IDS_ENTERPRISE_ENROLLMENT_STATUS_NO_MACHINE_IDENTIFICATION, | 382 ShowError(IDS_ENTERPRISE_ENROLLMENT_STATUS_NO_MACHINE_IDENTIFICATION, |
383 false); | 383 false); |
384 return; | 384 return; |
| 385 case policy::EnrollmentStatus::STATUS_ACTIVE_DIRECTORY_POLICY_FETCH_FAILED: |
| 386 ShowError(IDS_ENTERPRISE_ENROLLMENT_ERROR_ACTIVE_DIRECTORY_POLICY_FETCH, |
| 387 false); |
| 388 return; |
385 } | 389 } |
386 NOTREACHED(); | 390 NOTREACHED(); |
387 } | 391 } |
388 | 392 |
389 // EnrollmentScreenHandler BaseScreenHandler implementation ----- | 393 // EnrollmentScreenHandler BaseScreenHandler implementation ----- |
390 | 394 |
391 void EnrollmentScreenHandler::Initialize() { | 395 void EnrollmentScreenHandler::Initialize() { |
392 if (show_on_init_) { | 396 if (show_on_init_) { |
393 Show(); | 397 Show(); |
394 show_on_init_ = false; | 398 show_on_init_ = false; |
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
660 | 664 |
661 ShowScreenWithData(OobeScreen::SCREEN_OOBE_ENROLLMENT, &screen_data); | 665 ShowScreenWithData(OobeScreen::SCREEN_OOBE_ENROLLMENT, &screen_data); |
662 if (first_show_) { | 666 if (first_show_) { |
663 first_show_ = false; | 667 first_show_ = false; |
664 UpdateStateInternal(NetworkError::ERROR_REASON_UPDATE, true); | 668 UpdateStateInternal(NetworkError::ERROR_REASON_UPDATE, true); |
665 } | 669 } |
666 histogram_helper_->OnScreenShow(); | 670 histogram_helper_->OnScreenShow(); |
667 } | 671 } |
668 | 672 |
669 } // namespace chromeos | 673 } // namespace chromeos |
OLD | NEW |