| 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/screens/error_screen.h" | 5 #include "chrome/browser/chromeos/login/screens/error_screen.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "chrome/browser/chromeos/login/auth/chrome_login_performer.h" |
| 8 #include "chrome/browser/chromeos/login/chrome_restart_request.h" | 9 #include "chrome/browser/chromeos/login/chrome_restart_request.h" |
| 9 #include "chrome/browser/chromeos/login/screens/error_screen_actor.h" | 10 #include "chrome/browser/chromeos/login/screens/error_screen_actor.h" |
| 10 #include "chrome/browser/chromeos/login/startup_utils.h" | 11 #include "chrome/browser/chromeos/login/startup_utils.h" |
| 11 #include "chrome/browser/chromeos/login/wizard_controller.h" | 12 #include "chrome/browser/chromeos/login/wizard_controller.h" |
| 12 #include "chrome/browser/chromeos/settings/cros_settings.h" | 13 #include "chrome/browser/chromeos/settings/cros_settings.h" |
| 13 | 14 |
| 14 namespace chromeos { | 15 namespace chromeos { |
| 15 | 16 |
| 16 ErrorScreen::ErrorScreen(ScreenObserver* screen_observer, | 17 ErrorScreen::ErrorScreen(ScreenObserver* screen_observer, |
| 17 ErrorScreenActor* actor) | 18 ErrorScreenActor* actor) |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 CrosSettings::Get()->GetBoolean(kAccountsPrefAllowGuest, &allow_guest); | 165 CrosSettings::Get()->GetBoolean(kAccountsPrefAllowGuest, &allow_guest); |
| 165 if (allow_guest) | 166 if (allow_guest) |
| 166 break; | 167 break; |
| 167 return; | 168 return; |
| 168 } | 169 } |
| 169 } | 170 } |
| 170 | 171 |
| 171 if (guest_login_performer_) | 172 if (guest_login_performer_) |
| 172 return; | 173 return; |
| 173 | 174 |
| 174 guest_login_performer_.reset(new LoginPerformer(this)); | 175 guest_login_performer_.reset(new ChromeLoginPerformer(this)); |
| 175 guest_login_performer_->LoginOffTheRecord(); | 176 guest_login_performer_->LoginOffTheRecord(); |
| 176 } | 177 } |
| 177 | 178 |
| 178 } // namespace chromeos | 179 } // namespace chromeos |
| OLD | NEW |