Commit 000c822e authored by alemate's avatar alemate Committed by Commit bot

ChromeOS: fix OOBE crash.

This CL fixes crash when multiply JS requests to show Login screen are
generated.

BUG=645625
TEST=none

Review-Url: https://codereview.chromium.org/2334223007
Cr-Commit-Position: refs/heads/master@{#418677}
parent a62b6b27
......@@ -419,6 +419,10 @@ void WizardController::ShowNetworkScreen() {
}
void WizardController::ShowLoginScreen(const LoginScreenContext& context) {
// This may be triggered by multiply asynchronous events from the JS side.
if (login_screen_started_)
return;
if (!time_eula_accepted_.is_null()) {
base::TimeDelta delta = base::Time::Now() - time_eula_accepted_;
UMA_HISTOGRAM_MEDIUM_TIMES("OOBE.EULAToSignInTime", delta);
......
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