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

Unified Diff: chrome/browser/ui/webui/chromeos/login/core_oobe_handler.cc

Issue 335413002: Logic fix for switching to Reset screen. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Check for default_host added. Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/chromeos/login/core_oobe_handler.cc
diff --git a/chrome/browser/ui/webui/chromeos/login/core_oobe_handler.cc b/chrome/browser/ui/webui/chromeos/login/core_oobe_handler.cc
index 58f174d0d62a9545ea627ce92f45eedbd91cb450..76922332f178657202b24c1808ac0e3bcdb3cf25 100644
--- a/chrome/browser/ui/webui/chromeos/login/core_oobe_handler.cc
+++ b/chrome/browser/ui/webui/chromeos/login/core_oobe_handler.cc
@@ -168,8 +168,11 @@ void CoreOobeHandler::ShowDeviceResetScreen() {
wizard_controller->AdvanceToScreen(WizardController::kResetScreenName);
} else {
scoped_ptr<base::DictionaryValue> params(new base::DictionaryValue());
- LoginDisplayHostImpl::default_host()->StartWizard(
- WizardController::kResetScreenName, params.Pass());
+ DCHECK(LoginDisplayHostImpl::default_host());
+ if (LoginDisplayHostImpl::default_host()) {
+ LoginDisplayHostImpl::default_host()->StartWizard(
+ WizardController::kResetScreenName, params.Pass());
+ }
}
}
}
« no previous file with comments | « no previous file | chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698