Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(573)

Side by Side Diff: chrome/browser/chromeos/login/screens/error_screen.cc

Issue 987693002: Implement ErrorScreenHandler::Hide method (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2311
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/webui/chromeos/login/error_screen_handler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/webui/chromeos/login/error_screen_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698