Commit 5fbf47ec authored by Roman Sorokin's avatar Roman Sorokin Committed by Commit Bot

oobe: Check if WizardController is initialized for testing methods

This CL fixes regression introduces in CL:2230472. Before *ForTesting
methods checked if WC is created. After the offending CL WC is always
created. So in this CL the methods also check if the WC is initialized

Bug: 1094552
Change-Id: I603de486c6da5e62a406c7f6ecd407dafabf7762
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2247734
Auto-Submit: Roman Sorokin [CET] <rsorokin@chromium.org>
Commit-Queue: Denis Kuznetsov [CET] <antrim@chromium.org>
Reviewed-by: default avatarDenis Kuznetsov [CET] <antrim@chromium.org>
Cr-Commit-Position: refs/heads/master@{#779321}
parent b51f3c6e
......@@ -376,13 +376,15 @@ void CoreOobeHandler::HandleSetDeviceRequisition(
}
void CoreOobeHandler::HandleSkipToLoginForTesting() {
if (WizardController::default_controller())
WizardController* controller = WizardController::default_controller();
if (controller && controller->is_initialized())
WizardController::default_controller()->SkipToLoginForTesting();
}
void CoreOobeHandler::HandleSkipToUpdateForTesting() {
if (WizardController::default_controller())
WizardController::default_controller()->SkipToUpdateForTesting();
WizardController* controller = WizardController::default_controller();
if (controller && controller->is_initialized())
controller->SkipToUpdateForTesting();
}
void CoreOobeHandler::HandleToggleResetScreen() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment