| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/chromeos/login/enrollment/auto_enrollment_check_screen.
h" | 5 #include "chrome/browser/chromeos/login/enrollment/auto_enrollment_check_screen.
h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/location.h" | 10 #include "base/location.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 .status | 34 .status |
| 35 : NetworkPortalDetector::CAPTIVE_PORTAL_STATUS_UNKNOWN; | 35 : NetworkPortalDetector::CAPTIVE_PORTAL_STATUS_UNKNOWN; |
| 36 } | 36 } |
| 37 | 37 |
| 38 } // namespace | 38 } // namespace |
| 39 | 39 |
| 40 // static | 40 // static |
| 41 AutoEnrollmentCheckScreen* AutoEnrollmentCheckScreen::Get( | 41 AutoEnrollmentCheckScreen* AutoEnrollmentCheckScreen::Get( |
| 42 ScreenManager* manager) { | 42 ScreenManager* manager) { |
| 43 return static_cast<AutoEnrollmentCheckScreen*>( | 43 return static_cast<AutoEnrollmentCheckScreen*>( |
| 44 manager->GetScreen(WizardController::kAutoEnrollmentCheckScreenName)); | 44 manager->GetScreen(OobeScreen::SCREEN_AUTO_ENROLLMENT_CHECK)); |
| 45 } | 45 } |
| 46 | 46 |
| 47 AutoEnrollmentCheckScreen::AutoEnrollmentCheckScreen( | 47 AutoEnrollmentCheckScreen::AutoEnrollmentCheckScreen( |
| 48 BaseScreenDelegate* base_screen_delegate, | 48 BaseScreenDelegate* base_screen_delegate, |
| 49 AutoEnrollmentCheckScreenActor* actor) | 49 AutoEnrollmentCheckScreenActor* actor) |
| 50 : BaseScreen(base_screen_delegate, | 50 : BaseScreen(base_screen_delegate, |
| 51 WizardController::kAutoEnrollmentCheckScreenName), | 51 OobeScreen::SCREEN_AUTO_ENROLLMENT_CHECK), |
| 52 actor_(actor), | 52 actor_(actor), |
| 53 auto_enrollment_controller_(nullptr), | 53 auto_enrollment_controller_(nullptr), |
| 54 captive_portal_status_( | 54 captive_portal_status_( |
| 55 NetworkPortalDetector::CAPTIVE_PORTAL_STATUS_UNKNOWN), | 55 NetworkPortalDetector::CAPTIVE_PORTAL_STATUS_UNKNOWN), |
| 56 auto_enrollment_state_(policy::AUTO_ENROLLMENT_STATE_IDLE), | 56 auto_enrollment_state_(policy::AUTO_ENROLLMENT_STATE_IDLE), |
| 57 histogram_helper_(new ErrorScreensHistogramHelper("Enrollment")), | 57 histogram_helper_(new ErrorScreensHistogramHelper("Enrollment")), |
| 58 weak_ptr_factory_(this) { | 58 weak_ptr_factory_(this) { |
| 59 if (actor_) | 59 if (actor_) |
| 60 actor_->SetDelegate(this); | 60 actor_->SetDelegate(this); |
| 61 } | 61 } |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 } | 268 } |
| 269 NOTREACHED(); | 269 NOTREACHED(); |
| 270 return false; | 270 return false; |
| 271 } | 271 } |
| 272 | 272 |
| 273 void AutoEnrollmentCheckScreen::OnConnectRequested() { | 273 void AutoEnrollmentCheckScreen::OnConnectRequested() { |
| 274 auto_enrollment_controller_->Retry(); | 274 auto_enrollment_controller_->Retry(); |
| 275 } | 275 } |
| 276 | 276 |
| 277 } // namespace chromeos | 277 } // namespace chromeos |
| OLD | NEW |