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

Issue 2912763003: cros: Prevent shut down on lid-close during migration. (Closed)

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

Description

cros: Prevent shut down on lid-close during migration. In the login screen, the system will shut down on lid close. Although we ask users not to close the lid during the migration, it should be better to change the lid-close action to SUSPEND during migration. BUG=726229 TEST=out/Release/chromeos_unittests --gtest_filter=PowerPolicyControllerTest.* Review-Url: https://codereview.chromium.org/2912763003 Cr-Commit-Position: refs/heads/master@{#476091} Committed: https://chromium.googlesource.com/chromium/src/+/3769f83c5922880a027a1aaa6589d9a99c7b782f

Patch Set 1 #

Total comments: 6

Patch Set 2 : address comments #

Total comments: 4

Patch Set 3 : update comment wording #

Total comments: 2

Patch Set 4 : Only update if changed #

Total comments: 2

Patch Set 5 : revert unrelated change #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -4 lines) Patch
M chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.cc View 1 2 2 chunks +7 lines, -3 lines 0 comments Download
M chromeos/dbus/power_policy_controller.h View 1 2 chunks +9 lines, -0 lines 0 comments Download
M chromeos/dbus/power_policy_controller.cc View 1 2 3 2 chunks +19 lines, -1 line 0 comments Download
M chromeos/dbus/power_policy_controller_unittest.cc View 1 chunk +28 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (7 generated)
dspaid
ptal This is to take over from fukino's work at https://codereview.chromium.org/2907773002/
3 years, 6 months ago (2017-05-30 05:57:22 UTC) #2
Daniel Erat
https://codereview.chromium.org/2912763003/diff/1/chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.cc File chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.cc (right): https://codereview.chromium.org/2912763003/diff/1/chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.cc#newcode289 chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.cc:289: if (PowerPolicyController::IsInitialize()) i don't think that this code should ...
3 years, 6 months ago (2017-05-30 13:39:42 UTC) #3
dspaid
ptal https://codereview.chromium.org/2912763003/diff/1/chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.cc File chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.cc (right): https://codereview.chromium.org/2912763003/diff/1/chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.cc#newcode289 chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.cc:289: if (PowerPolicyController::IsInitialize()) On 2017/05/30 13:39:42, Daniel Erat wrote: ...
3 years, 6 months ago (2017-05-30 23:37:22 UTC) #4
Daniel Erat
lgtm https://codereview.chromium.org/2912763003/diff/20001/chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.cc File chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.cc (right): https://codereview.chromium.org/2912763003/diff/20001/chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.cc#newcode286 chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.cc:286: // We should block power save and not ...
3 years, 6 months ago (2017-05-30 23:41:47 UTC) #5
dspaid
https://codereview.chromium.org/2912763003/diff/20001/chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.cc File chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.cc (right): https://codereview.chromium.org/2912763003/diff/20001/chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.cc#newcode286 chrome/browser/ui/webui/chromeos/login/encryption_migration_screen_handler.cc:286: // We should block power save and not poweroff ...
3 years, 6 months ago (2017-05-30 23:46:39 UTC) #6
fukino
Dan, thank you for taking over this! https://codereview.chromium.org/2912763003/diff/40001/chromeos/dbus/power_policy_controller.cc File chromeos/dbus/power_policy_controller.cc (right): https://codereview.chromium.org/2912763003/diff/40001/chromeos/dbus/power_policy_controller.cc#newcode281 chromeos/dbus/power_policy_controller.cc:281: SendCurrentPolicy(); Maybe ...
3 years, 6 months ago (2017-05-31 05:57:22 UTC) #7
dspaid
https://codereview.chromium.org/2912763003/diff/40001/chromeos/dbus/power_policy_controller.cc File chromeos/dbus/power_policy_controller.cc (right): https://codereview.chromium.org/2912763003/diff/40001/chromeos/dbus/power_policy_controller.cc#newcode281 chromeos/dbus/power_policy_controller.cc:281: SendCurrentPolicy(); On 2017/05/31 05:57:22, fukino wrote: > Maybe we ...
3 years, 6 months ago (2017-05-31 07:04:27 UTC) #8
fukino
Thanks! lgtm.
3 years, 6 months ago (2017-05-31 07:22:14 UTC) #9
Daniel Erat
thanks, good catch! still lgtm
3 years, 6 months ago (2017-05-31 12:39:00 UTC) #10
xiyuan
https://codereview.chromium.org/2912763003/diff/60001/chromeos/dbus/cryptohome_client.cc File chromeos/dbus/cryptohome_client.cc (right): https://codereview.chromium.org/2912763003/diff/60001/chromeos/dbus/cryptohome_client.cc#newcode91 chromeos/dbus/cryptohome_client.cc:91: LOG(FATAL) << "unmount"; Is this intentional?
3 years, 6 months ago (2017-05-31 15:00:53 UTC) #11
dspaid
https://codereview.chromium.org/2912763003/diff/60001/chromeos/dbus/cryptohome_client.cc File chromeos/dbus/cryptohome_client.cc (right): https://codereview.chromium.org/2912763003/diff/60001/chromeos/dbus/cryptohome_client.cc#newcode91 chromeos/dbus/cryptohome_client.cc:91: LOG(FATAL) << "unmount"; On 2017/05/31 15:00:53, xiyuan wrote: > ...
3 years, 6 months ago (2017-05-31 22:51:06 UTC) #12
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/2912763003/80001
3 years, 6 months ago (2017-05-31 22:52:58 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/452584)
3 years, 6 months ago (2017-05-31 23:02:39 UTC) #17
xiyuan
lgtm
3 years, 6 months ago (2017-05-31 23:06:09 UTC) #18
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/2912763003/80001
3 years, 6 months ago (2017-05-31 23:30:59 UTC) #20
commit-bot: I haz the power
3 years, 6 months ago (2017-05-31 23:37:26 UTC) #23
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/3769f83c5922880a027a1aaa6589...

Powered by Google App Engine
This is Rietveld 408576698