Commit 956d75c9 authored by warx's avatar warx Committed by Commit bot

Corrupted powerwash proposal UI

When getting screensize for powerwash reset, making sure the currentScreen is 'reset', not 'account-picker'.

BUG=615088
TEST=Multiple tests on M52, the corrupted powerwash proposal UI doesn't happen any more.
CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:closure_compilation

Review-Url: https://codereview.chromium.org/2109763003
Cr-Commit-Position: refs/heads/master@{#402676}
parent 876e2e65
......@@ -58,6 +58,12 @@ login.createScreen('ResetScreen', 'reset', function() {
this.context.addObserver(
CONTEXT_KEY_SCREEN_STATE,
function(state) {
if (Oobe.getInstance().currentScreen != this) {
setTimeout(function() {
Oobe.resetSigninUI(false);
Oobe.showScreen({id: SCREEN_OOBE_RESET});
}, 0);
}
if (state == self.RESET_SCREEN_STATE.RESTART_REQUIRED)
self.ui_state = self.RESET_SCREEN_UI_STATE.RESTART_REQUIRED;
if (state == self.RESET_SCREEN_STATE.REVERT_PROMISE)
......
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