New issue
Advanced search Search tips

Issue 871412 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Nov 7
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: Bug

Blocking:
issue 812040



Sign in to add a comment

Show Powerwash button if fatal error occurs during demo mode setup

Project Member Reported by michae...@chromium.org, Aug 6

Issue description

The Demo Mode setup screen should show the right error message when a fatal error occurs that causes the device to require a Powerwash.

It should also:
* disable the back button
* hide the OK button
* add a "Restart and Powerwash" button, like the OOBE error screen
 
Cc: michae...@chromium.org
Owner: mukai@chromium.org
Status: Assigned (was: Started)
Cc: mukai@chromium.org
Owner: ----
Status: Available (was: Assigned)
part of this (showing the error message) was started in this CL which I can take over: https://chromium-review.googlesource.com/c/chromium/src/+/1123316
Labels: -M-70 M-71
Owner: agawronska@chromium.org
Status: Assigned (was: Available)
Labels: -M-71 M-72
Summary: Show Powerwash button if fatal error occurs during demo mode setup (was: Show Powerwash button and error message on Demo Mode setup error)
Owner: wzang@chromium.org
=> wzang
Which errors are considered "fatal errors that require a Powerwash" as opposed to "other errors that allow users to try again"?
We got rid of "fatal" and replaced it with RecoveryMethod::kPowerwash -- so when a DemoSetupError has a recovery_method_ of kPowerwash, we should show the "Restart and Powerwash" button.

Generally these are errors where the device is partially enrolled, ie the TPM is locked, so we can't proceed with any sort of device setup without a powerwash.
The DemoSetupError::RecoveryMethod should be used for that.
 
https://cs.chromium.org/chromium/src/chrome/browser/chromeos/login/demo_mode/demo_setup_controller.h?rcl=84a6a5f0b7244e679579c6e15957b016e6407dee&l=112

Note: We could consider showing 'Reboot' button for RecoveryMethod::kReboot in the future. 
Project Member

Comment 10 by bugdroid1@chromium.org, Nov 5

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/919287d0a1eda09af61b4115352269a1d256617b

commit 919287d0a1eda09af61b4115352269a1d256617b
Author: Wenzhao Zang <wzang@chromium.org>
Date: Mon Nov 05 05:44:34 2018

cros: Show Powerwash button in case of a fatal demo setup error

Bug:  871412 
Change-Id: I5bf054ed6ef4c927253fbad4fe09ec674cc58d39
Reviewed-on: https://chromium-review.googlesource.com/c/1310559
Reviewed-by: Aga Wronska <agawronska@chromium.org>
Reviewed-by: Alexander Alekseev <alemate@chromium.org>
Commit-Queue: Wenzhao (Colin) Zang <wzang@chromium.org>
Cr-Commit-Position: refs/heads/master@{#605256}
[modify] https://crrev.com/919287d0a1eda09af61b4115352269a1d256617b/chrome/browser/chromeos/login/demo_mode/demo_setup_browsertest.cc
[modify] https://crrev.com/919287d0a1eda09af61b4115352269a1d256617b/chrome/browser/chromeos/login/demo_mode/demo_setup_controller_unittest.cc
[modify] https://crrev.com/919287d0a1eda09af61b4115352269a1d256617b/chrome/browser/chromeos/login/demo_mode/demo_setup_test_utils.h
[modify] https://crrev.com/919287d0a1eda09af61b4115352269a1d256617b/chrome/browser/chromeos/login/screens/demo_setup_screen.cc
[modify] https://crrev.com/919287d0a1eda09af61b4115352269a1d256617b/chrome/browser/resources/chromeos/login/demo_setup.html
[modify] https://crrev.com/919287d0a1eda09af61b4115352269a1d256617b/chrome/browser/resources/chromeos/login/demo_setup.js
[modify] https://crrev.com/919287d0a1eda09af61b4115352269a1d256617b/chrome/browser/resources/chromeos/login/oobe_buttons.html
[modify] https://crrev.com/919287d0a1eda09af61b4115352269a1d256617b/chrome/browser/resources/chromeos/login/oobe_screen_demo_setup.js
[modify] https://crrev.com/919287d0a1eda09af61b4115352269a1d256617b/chrome/browser/ui/webui/chromeos/login/demo_setup_screen_handler.cc

Status: Fixed (was: Assigned)

Sign in to add a comment