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

Issue 2842433002: cros: Prevent casual shut down and power save during 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

cros: Prevent casual shut down and power save during migration. In the migration UI, we ask users that "Don't turn off or close your Chromebook". In addition, we can resume migration even when user shut down / suspend the device during migration. That said, it should be even safer to prevent casual shutdown and power save mode by: - Hide "Shut down" button during migration. - Block power save during migration. Note that if the user close the lid, the system will be suspended. We have heard about heat issues when the lid is closed, and the system will be heated by heavy CPU usage of migration. It should be safer not to keep the device awake when the lid is closed. BUG=711454 TEST=manually tested that the "Shut down" button was hidden and the device did not go to sleep mode during migration. CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2842433002 Cr-Commit-Position: refs/heads/master@{#466879} Committed: https://chromium.googlesource.com/chromium/src/+/e88b030f517ff578aff9af1a5a7762fc313163ad

Patch Set 1 #

Total comments: 2

Patch Set 2 : Update BUILD.gn to include PowerSaveBlocker. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -1 line) Patch
M chrome/browser/resources/chromeos/login/header_bar.css View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/resources/chromeos/login/screen_encryption_migration.js View 1 chunk +6 lines, -1 line 0 comments Download
M chrome/browser/ui/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.h View 4 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.cc View 4 chunks +28 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (15 generated)
fukino
Xiyuan, could you take a look? https://codereview.chromium.org/2842433002/diff/1/chrome/browser/resources/chromeos/login/header_bar.css File chrome/browser/resources/chromeos/login/header_bar.css (right): https://codereview.chromium.org/2842433002/diff/1/chrome/browser/resources/chromeos/login/header_bar.css#newcode9 chrome/browser/resources/chromeos/login/header_bar.css:9: min-height: 34px; /* ...
3 years, 8 months ago (2017-04-24 12:31:25 UTC) #3
xiyuan
lgtm You need to add "//device/power_save_blocker", to a deps somewhere in chrome/browser/ui/BUILD.gn. Maybe the chromeos ...
3 years, 8 months ago (2017-04-24 16:48:52 UTC) #9
fukino
Thank you! I updated BUILD.gn. I'll do "gn check" next time I include a new ...
3 years, 8 months ago (2017-04-25 05:01:19 UTC) #14
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/2842433002/20001
3 years, 8 months ago (2017-04-25 05:02:10 UTC) #17
commit-bot: I haz the power
3 years, 8 months ago (2017-04-25 05:19:02 UTC) #20
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/e88b030f517ff578aff9af1a5a77...

Powered by Google App Engine
This is Rietveld 408576698