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

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

Issue 2555783003: cros: Remove unused method (Closed)
Patch Set: Created 4 years 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 67
68 void AutoEnrollmentCheckScreen::ClearState() { 68 void AutoEnrollmentCheckScreen::ClearState() {
69 auto_enrollment_progress_subscription_.reset(); 69 auto_enrollment_progress_subscription_.reset();
70 connect_request_subscription_.reset(); 70 connect_request_subscription_.reset();
71 network_portal_detector::GetInstance()->RemoveObserver(this); 71 network_portal_detector::GetInstance()->RemoveObserver(this);
72 72
73 auto_enrollment_state_ = policy::AUTO_ENROLLMENT_STATE_IDLE; 73 auto_enrollment_state_ = policy::AUTO_ENROLLMENT_STATE_IDLE;
74 captive_portal_status_ = NetworkPortalDetector::CAPTIVE_PORTAL_STATUS_UNKNOWN; 74 captive_portal_status_ = NetworkPortalDetector::CAPTIVE_PORTAL_STATUS_UNKNOWN;
75 } 75 }
76 76
77 void AutoEnrollmentCheckScreen::PrepareToShow() {
78 }
79
80 void AutoEnrollmentCheckScreen::Show() { 77 void AutoEnrollmentCheckScreen::Show() {
81 // If the decision got made already, don't show the screen at all. 78 // If the decision got made already, don't show the screen at all.
82 if (AutoEnrollmentController::GetMode() != 79 if (AutoEnrollmentController::GetMode() !=
83 AutoEnrollmentController::MODE_FORCED_RE_ENROLLMENT || 80 AutoEnrollmentController::MODE_FORCED_RE_ENROLLMENT ||
84 IsCompleted()) { 81 IsCompleted()) {
85 SignalCompletion(); 82 SignalCompletion();
86 return; 83 return;
87 } 84 }
88 85
89 // Start from a clean slate. 86 // Start from a clean slate.
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 } 271 }
275 NOTREACHED(); 272 NOTREACHED();
276 return false; 273 return false;
277 } 274 }
278 275
279 void AutoEnrollmentCheckScreen::OnConnectRequested() { 276 void AutoEnrollmentCheckScreen::OnConnectRequested() {
280 auto_enrollment_controller_->Retry(); 277 auto_enrollment_controller_->Retry();
281 } 278 }
282 279
283 } // namespace chromeos 280 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698