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 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
256 oobe_display_ = NULL; | 256 oobe_display_ = NULL; |
257 } | 257 } |
258 | 258 |
259 void WizardController::ShowUpdateScreen() { | 259 void WizardController::ShowUpdateScreen() { |
260 VLOG(1) << "Showing update screen."; | 260 VLOG(1) << "Showing update screen."; |
261 SetStatusAreaVisible(true); | 261 SetStatusAreaVisible(true); |
262 SetCurrentScreen(GetUpdateScreen()); | 262 SetCurrentScreen(GetUpdateScreen()); |
263 } | 263 } |
264 | 264 |
265 void WizardController::ShowUserImageScreen() { | 265 void WizardController::ShowUserImageScreen() { |
266 // Skip image selection for ephemeral users. | |
267 if (chromeos::UserManager::Get()->current_user_is_ephemeral()) { | |
Nikita (slow)
2012/03/07 10:03:04
I think we should alter UX for these users as less
use bartfab instead
2012/03/07 11:10:08
I made the change as requested but I think skippin
| |
268 OnUserImageSkipped(); | |
269 return; | |
270 } | |
266 VLOG(1) << "Showing user image screen."; | 271 VLOG(1) << "Showing user image screen."; |
267 SetStatusAreaVisible(false); | 272 SetStatusAreaVisible(false); |
268 SetCurrentScreen(GetUserImageScreen()); | 273 SetCurrentScreen(GetUserImageScreen()); |
269 host_->SetShutdownButtonEnabled(false); | 274 host_->SetShutdownButtonEnabled(false); |
270 } | 275 } |
271 | 276 |
272 void WizardController::ShowEulaScreen() { | 277 void WizardController::ShowEulaScreen() { |
273 VLOG(1) << "Showing EULA screen."; | 278 VLOG(1) << "Showing EULA screen."; |
274 SetStatusAreaVisible(false); | 279 SetStatusAreaVisible(false); |
275 SetCurrentScreen(GetEulaScreen()); | 280 SetCurrentScreen(GetEulaScreen()); |
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
708 | 713 |
709 bool WizardController::usage_statistics_reporting() const { | 714 bool WizardController::usage_statistics_reporting() const { |
710 return usage_statistics_reporting_; | 715 return usage_statistics_reporting_; |
711 } | 716 } |
712 | 717 |
713 void WizardController::SetZeroDelays() { | 718 void WizardController::SetZeroDelays() { |
714 kShowDelayMs = 0; | 719 kShowDelayMs = 0; |
715 } | 720 } |
716 | 721 |
717 } // namespace chromeos | 722 } // namespace chromeos |
OLD | NEW |