| 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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 // EnrollmentScreenActor implementation ----------------------------------- | 180 // EnrollmentScreenActor implementation ----------------------------------- |
| 181 | 181 |
| 182 void EnrollmentScreenHandler::SetParameters( | 182 void EnrollmentScreenHandler::SetParameters( |
| 183 Controller* controller, | 183 Controller* controller, |
| 184 const policy::EnrollmentConfig& config) { | 184 const policy::EnrollmentConfig& config) { |
| 185 CHECK(config.should_enroll()); | 185 CHECK(config.should_enroll()); |
| 186 controller_ = controller; | 186 controller_ = controller; |
| 187 config_ = config; | 187 config_ = config; |
| 188 } | 188 } |
| 189 | 189 |
| 190 void EnrollmentScreenHandler::PrepareToShow() { | |
| 191 } | |
| 192 | |
| 193 void EnrollmentScreenHandler::Show() { | 190 void EnrollmentScreenHandler::Show() { |
| 194 if (!page_is_ready()) | 191 if (!page_is_ready()) |
| 195 show_on_init_ = true; | 192 show_on_init_ = true; |
| 196 else | 193 else |
| 197 DoShow(); | 194 DoShow(); |
| 198 } | 195 } |
| 199 | 196 |
| 200 void EnrollmentScreenHandler::Hide() { | 197 void EnrollmentScreenHandler::Hide() { |
| 201 } | 198 } |
| 202 | 199 |
| (...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 658 | 655 |
| 659 ShowScreenWithData(OobeScreen::SCREEN_OOBE_ENROLLMENT, &screen_data); | 656 ShowScreenWithData(OobeScreen::SCREEN_OOBE_ENROLLMENT, &screen_data); |
| 660 if (first_show_) { | 657 if (first_show_) { |
| 661 first_show_ = false; | 658 first_show_ = false; |
| 662 UpdateStateInternal(NetworkError::ERROR_REASON_UPDATE, true); | 659 UpdateStateInternal(NetworkError::ERROR_REASON_UPDATE, true); |
| 663 } | 660 } |
| 664 histogram_helper_->OnScreenShow(); | 661 histogram_helper_->OnScreenShow(); |
| 665 } | 662 } |
| 666 | 663 |
| 667 } // namespace chromeos | 664 } // namespace chromeos |
| OLD | NEW |