Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(282)

Side by Side Diff: chrome/browser/chromeos/login/enrollment/auto_enrollment_check_screen.cc

Issue 2566443005: cros: Replace WizardController string constants with OobeScreen values. (Closed)
Patch Set: Address comments Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/BUILD.gn ('k') | chrome/browser/chromeos/login/enrollment/enrollment_screen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698