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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 ErrorScreen::UIState ErrorScreen::GetUIState() const { | 123 ErrorScreen::UIState ErrorScreen::GetUIState() const { |
124 return actor_ ? actor_->ui_state() : UI_STATE_UNKNOWN; | 124 return actor_ ? actor_->ui_state() : UI_STATE_UNKNOWN; |
125 } | 125 } |
126 | 126 |
127 void ErrorScreen::SetErrorState(ErrorState error_state, | 127 void ErrorScreen::SetErrorState(ErrorState error_state, |
128 const std::string& network) { | 128 const std::string& network) { |
129 if (actor_) | 129 if (actor_) |
130 actor_->SetErrorState(error_state, network); | 130 actor_->SetErrorState(error_state, network); |
131 } | 131 } |
132 | 132 |
| 133 ErrorScreen::ErrorState ErrorScreen::GetErrorState() const { |
| 134 DCHECK(actor_); |
| 135 return actor_->error_state(); |
| 136 } |
| 137 |
133 void ErrorScreen::AllowGuestSignin(bool allow) { | 138 void ErrorScreen::AllowGuestSignin(bool allow) { |
134 if (actor_) | 139 if (actor_) |
135 actor_->AllowGuestSignin(allow); | 140 actor_->AllowGuestSignin(allow); |
136 } | 141 } |
137 | 142 |
138 void ErrorScreen::ShowConnectingIndicator(bool show) { | 143 void ErrorScreen::ShowConnectingIndicator(bool show) { |
139 if (actor_) | 144 if (actor_) |
140 actor_->ShowConnectingIndicator(show); | 145 actor_->ShowConnectingIndicator(show); |
141 } | 146 } |
142 | 147 |
(...skipping 26 matching lines...) Expand all Loading... |
169 } | 174 } |
170 | 175 |
171 if (guest_login_performer_) | 176 if (guest_login_performer_) |
172 return; | 177 return; |
173 | 178 |
174 guest_login_performer_.reset(new LoginPerformer(this)); | 179 guest_login_performer_.reset(new LoginPerformer(this)); |
175 guest_login_performer_->LoginOffTheRecord(); | 180 guest_login_performer_->LoginOffTheRecord(); |
176 } | 181 } |
177 | 182 |
178 } // namespace chromeos | 183 } // namespace chromeos |
OLD | NEW |