Commit 14947f52 authored by xiyuan's avatar xiyuan Committed by Commit bot

cros: Fix MD OOBE crash

Reset |oobe_ui_| in ShowLoginScreen is legacy code back when there
are separate OobeDisplay and LoginDisplay. OobeDisplay is no longer
needed when login screen is shown. This has changed as there is
only one LoginDisplay and |oobe_ui_| is used for both OOBE and login.
And it should not change during the lifetime of WizardController.

BUG=647742

Review-Url: https://codereview.chromium.org/2341613006
Cr-Commit-Position: refs/heads/master@{#419308}
parent 0fd94044
......@@ -431,7 +431,6 @@ void WizardController::ShowLoginScreen(const LoginScreenContext& context) {
SetStatusAreaVisible(true);
host_->StartSignInScreen(context);
smooth_show_timer_.Stop();
oobe_ui_ = nullptr;
login_screen_started_ = true;
}
......
......@@ -372,7 +372,7 @@ class WizardController : public BaseScreenDelegate,
base::OneShotTimer smooth_show_timer_;
OobeUI* oobe_ui_ = nullptr;
OobeUI* const oobe_ui_;
// State of Usage stat/error reporting checkbox on EULA screen
// during wizard lifetime.
......
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