DescriptionWait for the battery level before starting encryption migration.
To avoid unexpected shutdowns during migration, we should ensure that the
battery level is enough before starting migration.
The expected behavior is as follows:
1) When "Upgrade" button is pressed and battery is enough,
start migration immediately.
2) When "Upgrade" button is pressed and battery is low,
ask the user to charge the device on the UI, disable the "Upgrade" button,
and start migration once the battery level gets enough.
3) When resuming previous migration and battery is enouch,
start migration immediately.
4) When resuming previous migration and battery is low,
ask the user to charge the device on the UI, hide all action buttons,
and start migration once the battery gets enough.
BUG=706017
TEST=manually tested the described expected behaviors.
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation
Review-Url: https://codereview.chromium.org/2818433002
Cr-Commit-Position: refs/heads/master@{#464251}
Committed: https://chromium.googlesource.com/chromium/src/+/98210114c0ce20499946176a3d9cdabbe6c2e701
Patch Set 1 #
Total comments: 4
Patch Set 2 : Update |isMigrationAccepted| inside encryption-migration element. #
Messages
Total messages: 20 (13 generated)
|