| 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/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 | 232 |
| 233 void ErrorScreen::PolicyLoadFailed() { | 233 void ErrorScreen::PolicyLoadFailed() { |
| 234 LOG(FATAL); | 234 LOG(FATAL); |
| 235 } | 235 } |
| 236 | 236 |
| 237 void ErrorScreen::OnOnlineChecked(const std::string& username, bool success) { | 237 void ErrorScreen::OnOnlineChecked(const std::string& username, bool success) { |
| 238 LOG(FATAL); | 238 LOG(FATAL); |
| 239 } | 239 } |
| 240 | 240 |
| 241 void ErrorScreen::DefaultHideCallback() { | 241 void ErrorScreen::DefaultHideCallback() { |
| 242 if (view_) | 242 if (parent_screen_ != OobeUI::SCREEN_UNKNOWN && view_) |
| 243 view_->ShowScreen(parent_screen_); | 243 view_->ShowScreen(parent_screen_); |
| 244 SetParentScreen(OobeUI::SCREEN_UNKNOWN); | 244 SetParentScreen(OobeUI::SCREEN_UNKNOWN); |
| 245 } | 245 } |
| 246 | 246 |
| 247 void ErrorScreen::OnConfigureCerts() { | 247 void ErrorScreen::OnConfigureCerts() { |
| 248 gfx::NativeWindow native_window = | 248 gfx::NativeWindow native_window = |
| 249 LoginDisplayHostImpl::default_host()->GetNativeWindow(); | 249 LoginDisplayHostImpl::default_host()->GetNativeWindow(); |
| 250 CertificateManagerDialog* dialog = new CertificateManagerDialog( | 250 CertificateManagerDialog* dialog = new CertificateManagerDialog( |
| 251 ProfileHelper::GetSigninProfile(), NULL, native_window); | 251 ProfileHelper::GetSigninProfile(), NULL, native_window); |
| 252 dialog->Show(); | 252 dialog->Show(); |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 318 } | 318 } |
| 319 | 319 |
| 320 if (guest_login_performer_) | 320 if (guest_login_performer_) |
| 321 return; | 321 return; |
| 322 | 322 |
| 323 guest_login_performer_.reset(new ChromeLoginPerformer(this)); | 323 guest_login_performer_.reset(new ChromeLoginPerformer(this)); |
| 324 guest_login_performer_->LoginOffTheRecord(); | 324 guest_login_performer_->LoginOffTheRecord(); |
| 325 } | 325 } |
| 326 | 326 |
| 327 } // namespace chromeos | 327 } // namespace chromeos |
| OLD | NEW |