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/chromeos/login/wizard_controller.h" | 5 #include "chrome/browser/chromeos/login/wizard_controller.h" |
6 | 6 |
7 #include <signal.h> | 7 #include <signal.h> |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdlib.h> | 9 #include <stdlib.h> |
10 #include <sys/types.h> | 10 #include <sys/types.h> |
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 // change and affect the OOBE again. | 333 // change and affect the OOBE again. |
334 if (base::CommandLine::ForCurrentProcess()->HasSwitch( | 334 if (base::CommandLine::ForCurrentProcess()->HasSwitch( |
335 chromeos::switches::kDisableMdOobe)) | 335 chromeos::switches::kDisableMdOobe)) |
336 SetShowMdOobe(false); | 336 SetShowMdOobe(false); |
337 else if ((screen_pref.empty() || | 337 else if ((screen_pref.empty() || |
338 GetLocalState()->HasPrefPath(prefs::kOobeMdMode)) || | 338 GetLocalState()->HasPrefPath(prefs::kOobeMdMode)) || |
339 GetLocalState()->GetBoolean(prefs::kOobeMdMode)) | 339 GetLocalState()->GetBoolean(prefs::kOobeMdMode)) |
340 SetShowMdOobe(true); | 340 SetShowMdOobe(true); |
341 | 341 |
342 // TODO(drcrash): Remove this after testing (http://crbug.com/647411). | 342 // TODO(drcrash): Remove this after testing (http://crbug.com/647411). |
343 if (IsRemoraPairingOobe() || IsSharkRequisition() || IsRemoraRequisition()) { | 343 if (IsRemoraPairingOobe() || IsSharkRequisition()) { |
344 SetShowMdOobe(false); | 344 SetShowMdOobe(false); |
345 } | 345 } |
346 | 346 |
347 AdvanceToScreen(first_screen_); | 347 AdvanceToScreen(first_screen_); |
348 if (!IsMachineHWIDCorrect() && !StartupUtils::IsDeviceRegistered() && | 348 if (!IsMachineHWIDCorrect() && !StartupUtils::IsDeviceRegistered() && |
349 first_screen_ == OobeScreen::SCREEN_UNKNOWN) | 349 first_screen_ == OobeScreen::SCREEN_UNKNOWN) |
350 ShowWrongHWIDScreen(); | 350 ShowWrongHWIDScreen(); |
351 } | 351 } |
352 | 352 |
353 ErrorScreen* WizardController::GetErrorScreen() { | 353 ErrorScreen* WizardController::GetErrorScreen() { |
(...skipping 1186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1540 SetCurrentScreen(screen); | 1540 SetCurrentScreen(screen); |
1541 } | 1541 } |
1542 | 1542 |
1543 AutoEnrollmentController* WizardController::GetAutoEnrollmentController() { | 1543 AutoEnrollmentController* WizardController::GetAutoEnrollmentController() { |
1544 if (!auto_enrollment_controller_) | 1544 if (!auto_enrollment_controller_) |
1545 auto_enrollment_controller_ = base::MakeUnique<AutoEnrollmentController>(); | 1545 auto_enrollment_controller_ = base::MakeUnique<AutoEnrollmentController>(); |
1546 return auto_enrollment_controller_.get(); | 1546 return auto_enrollment_controller_.get(); |
1547 } | 1547 } |
1548 | 1548 |
1549 } // namespace chromeos | 1549 } // namespace chromeos |
OLD | NEW |