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/chrome_restart_request.h" | 8 #include "chrome/browser/chromeos/login/chrome_restart_request.h" |
9 #include "chrome/browser/chromeos/login/screens/error_screen_actor.h" | 9 #include "chrome/browser/chromeos/login/screens/error_screen_actor.h" |
10 #include "chrome/browser/chromeos/login/startup_utils.h" | 10 #include "chrome/browser/chromeos/login/startup_utils.h" |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 DCHECK(actor_); | 129 DCHECK(actor_); |
130 return actor_->ui_state(); | 130 return actor_->ui_state(); |
131 } | 131 } |
132 | 132 |
133 void ErrorScreen::SetErrorState(ErrorState error_state, | 133 void ErrorScreen::SetErrorState(ErrorState error_state, |
134 const std::string& network) { | 134 const std::string& network) { |
135 DCHECK(actor_); | 135 DCHECK(actor_); |
136 actor_->SetErrorState(error_state, network); | 136 actor_->SetErrorState(error_state, network); |
137 } | 137 } |
138 | 138 |
| 139 ErrorScreen::ErrorState ErrorScreen::GetErrorState() const { |
| 140 DCHECK(actor_); |
| 141 return actor_->error_state(); |
| 142 } |
| 143 |
139 void ErrorScreen::AllowGuestSignin(bool allow) { | 144 void ErrorScreen::AllowGuestSignin(bool allow) { |
140 DCHECK(actor_); | 145 DCHECK(actor_); |
141 actor_->AllowGuestSignin(allow); | 146 actor_->AllowGuestSignin(allow); |
142 } | 147 } |
143 | 148 |
144 void ErrorScreen::ShowConnectingIndicator(bool show) { | 149 void ErrorScreen::ShowConnectingIndicator(bool show) { |
145 DCHECK(actor_); | 150 DCHECK(actor_); |
146 actor_->ShowConnectingIndicator(show); | 151 actor_->ShowConnectingIndicator(show); |
147 } | 152 } |
148 | 153 |
(...skipping 26 matching lines...) Expand all Loading... |
175 } | 180 } |
176 | 181 |
177 if (guest_login_performer_) | 182 if (guest_login_performer_) |
178 return; | 183 return; |
179 | 184 |
180 guest_login_performer_.reset(new LoginPerformer(this)); | 185 guest_login_performer_.reset(new LoginPerformer(this)); |
181 guest_login_performer_->LoginOffTheRecord(); | 186 guest_login_performer_->LoginOffTheRecord(); |
182 } | 187 } |
183 | 188 |
184 } // namespace chromeos | 189 } // namespace chromeos |
OLD | NEW |