Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(171)

Issue 2818433002: Wait for the battery level before starting encryption migration. (Closed)

Created:
3 years, 8 months ago by fukino
Modified:
3 years, 8 months ago
Reviewers:
xiyuan
CC:
chromium-reviews, alemate+watch_chromium.org, achuith+watch_chromium.org, arv+watch_chromium.org, oshima+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Wait 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. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+120 lines, -16 lines) Patch
M chrome/browser/resources/chromeos/login/encryption_migration.html View 1 chunk +15 lines, -6 lines 0 comments Download
M chrome/browser/resources/chromeos/login/encryption_migration.js View 1 2 chunks +25 lines, -0 lines 0 comments Download
M chrome/browser/resources/chromeos/login/screen_encryption_migration.js View 1 2 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.h View 5 chunks +14 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.cc View 1 8 chunks +54 lines, -9 lines 0 comments Download

Messages

Total messages: 20 (13 generated)
fukino
Hi Xiyuan, could you take a look? https://codereview.chromium.org/2818433002/diff/1/chrome/browser/resources/chromeos/login/encryption_migration.html File chrome/browser/resources/chromeos/login/encryption_migration.html (right): https://codereview.chromium.org/2818433002/diff/1/chrome/browser/resources/chromeos/login/encryption_migration.html#newcode28 chrome/browser/resources/chromeos/login/encryption_migration.html:28: <template is="dom-if" ...
3 years, 8 months ago (2017-04-12 11:29:01 UTC) #8
xiyuan
lgtm https://codereview.chromium.org/2818433002/diff/1/chrome/browser/resources/chromeos/login/encryption_migration.html File chrome/browser/resources/chromeos/login/encryption_migration.html (right): https://codereview.chromium.org/2818433002/diff/1/chrome/browser/resources/chromeos/login/encryption_migration.html#newcode28 chrome/browser/resources/chromeos/login/encryption_migration.html:28: <template is="dom-if" if="[[!isEnoughBattery]]"> On 2017/04/12 11:29:01, fukino wrote: ...
3 years, 8 months ago (2017-04-12 16:56:57 UTC) #9
fukino
Thank you! https://codereview.chromium.org/2818433002/diff/1/chrome/browser/resources/chromeos/login/screen_encryption_migration.js File chrome/browser/resources/chromeos/login/screen_encryption_migration.js (right): https://codereview.chromium.org/2818433002/diff/1/chrome/browser/resources/chromeos/login/screen_encryption_migration.js#newcode91 chrome/browser/resources/chromeos/login/screen_encryption_migration.js:91: isMigrationAccepted; On 2017/04/12 16:56:56, xiyuan wrote: > ...
3 years, 8 months ago (2017-04-12 22:59:02 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2818433002/20001
3 years, 8 months ago (2017-04-12 22:59:44 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/193089)
3 years, 8 months ago (2017-04-12 23:50:55 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2818433002/20001
3 years, 8 months ago (2017-04-13 02:10:51 UTC) #17
commit-bot: I haz the power
3 years, 8 months ago (2017-04-13 02:30:42 UTC) #20
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/98210114c0ce20499946176a3d9c...

Powered by Google App Engine
This is Rietveld 408576698