| 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 <sys/types.h> | 8 #include <sys/types.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 oobe_display_ = NULL; | 262 oobe_display_ = NULL; |
| 263 } | 263 } |
| 264 | 264 |
| 265 void WizardController::ShowUpdateScreen() { | 265 void WizardController::ShowUpdateScreen() { |
| 266 VLOG(1) << "Showing update screen."; | 266 VLOG(1) << "Showing update screen."; |
| 267 SetStatusAreaVisible(true); | 267 SetStatusAreaVisible(true); |
| 268 SetCurrentScreen(GetUpdateScreen()); | 268 SetCurrentScreen(GetUpdateScreen()); |
| 269 } | 269 } |
| 270 | 270 |
| 271 void WizardController::ShowUserImageScreen() { | 271 void WizardController::ShowUserImageScreen() { |
| 272 // Skip image selection for ephemeral users. |
| 273 if (chromeos::UserManager::Get()->IsCurrentUserEphemeral()) { |
| 274 OnUserImageSkipped(); |
| 275 return; |
| 276 } |
| 272 VLOG(1) << "Showing user image screen."; | 277 VLOG(1) << "Showing user image screen."; |
| 273 SetStatusAreaVisible(false); | 278 SetStatusAreaVisible(false); |
| 274 SetCurrentScreen(GetUserImageScreen()); | 279 SetCurrentScreen(GetUserImageScreen()); |
| 275 host_->SetShutdownButtonEnabled(false); | 280 host_->SetShutdownButtonEnabled(false); |
| 276 } | 281 } |
| 277 | 282 |
| 278 void WizardController::ShowEulaScreen() { | 283 void WizardController::ShowEulaScreen() { |
| 279 VLOG(1) << "Showing EULA screen."; | 284 VLOG(1) << "Showing EULA screen."; |
| 280 SetStatusAreaVisible(false); | 285 SetStatusAreaVisible(false); |
| 281 SetCurrentScreen(GetEulaScreen()); | 286 SetCurrentScreen(GetEulaScreen()); |
| (...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 715 | 720 |
| 716 bool WizardController::usage_statistics_reporting() const { | 721 bool WizardController::usage_statistics_reporting() const { |
| 717 return usage_statistics_reporting_; | 722 return usage_statistics_reporting_; |
| 718 } | 723 } |
| 719 | 724 |
| 720 void WizardController::SetZeroDelays() { | 725 void WizardController::SetZeroDelays() { |
| 721 kShowDelayMs = 0; | 726 kShowDelayMs = 0; |
| 722 } | 727 } |
| 723 | 728 |
| 724 } // namespace chromeos | 729 } // namespace chromeos |
| OLD | NEW |