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

Issue 2546303002: ash: Start shutdown timer on post-resume power button press (Closed)

Created:
4 years ago by Qiang(Joe) Xu
Modified:
4 years ago
Reviewers:
Daniel Erat
CC:
chromium-reviews, kalyank, sadrul, oshima+watch_chromium.org, derat+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ash: Start shutdown timer on post-resume power button press Changes: Start shutdown timer on convertible Chromebooks when the power button is pressed just after resume. Continue avoiding forcing the display off in response to the button being released in this case, though. BUG=633304 TEST=device test, and test coverage Committed: https://crrev.com/d3dd2cafa37a9985dc4907ee364d9229b6c0006a Cr-Commit-Position: refs/heads/master@{#436447}

Patch Set 1 #

Total comments: 12

Patch Set 2 : based on comments #

Total comments: 6

Patch Set 3 : nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -27 lines) Patch
M ash/system/chromeos/power/tablet_power_button_controller.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M ash/system/chromeos/power/tablet_power_button_controller.cc View 1 2 2 chunks +12 lines, -19 lines 0 comments Download
M ash/system/chromeos/power/tablet_power_button_controller_unittest.cc View 1 2 chunks +16 lines, -8 lines 0 comments Download

Messages

Total messages: 19 (10 generated)
Qiang(Joe) Xu
Hi Daniel, please take a look, thanks!
4 years ago (2016-12-05 16:47:21 UTC) #3
Daniel Erat
https://codereview.chromium.org/2546303002/diff/1/ash/system/chromeos/power/tablet_power_button_controller.cc File ash/system/chromeos/power/tablet_power_button_controller.cc (right): https://codereview.chromium.org/2546303002/diff/1/ash/system/chromeos/power/tablet_power_button_controller.cc#newcode30 ash/system/chromeos/power/tablet_power_button_controller.cc:30: constexpr int kDurationPowerButtonAsWakeSourceMs = 2000; this name and comment ...
4 years ago (2016-12-05 17:26:00 UTC) #4
Qiang(Joe) Xu
Hi Daniel, here is the reply and new patch, thanks! https://codereview.chromium.org/2546303002/diff/1/ash/system/chromeos/power/tablet_power_button_controller.cc File ash/system/chromeos/power/tablet_power_button_controller.cc (right): https://codereview.chromium.org/2546303002/diff/1/ash/system/chromeos/power/tablet_power_button_controller.cc#newcode30 ...
4 years ago (2016-12-05 19:33:59 UTC) #8
Daniel Erat
looks okay with a few comments, but please make sure that it's obvious from the ...
4 years ago (2016-12-05 22:08:09 UTC) #9
Qiang(Joe) Xu
Hi Daniel, thanks for the suggestions, new patch updated. https://codereview.chromium.org/2546303002/diff/40001/ash/system/chromeos/power/tablet_power_button_controller.cc File ash/system/chromeos/power/tablet_power_button_controller.cc (right): https://codereview.chromium.org/2546303002/diff/40001/ash/system/chromeos/power/tablet_power_button_controller.cc#newcode100 ash/system/chromeos/power/tablet_power_button_controller.cc:100: ...
4 years ago (2016-12-05 22:38:29 UTC) #11
Daniel Erat
lgtm thanks!
4 years ago (2016-12-05 22:39:54 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/2546303002/60001
4 years ago (2016-12-05 22:42:26 UTC) #14
commit-bot: I haz the power
Committed patchset #3 (id:60001)
4 years ago (2016-12-05 23:27:39 UTC) #17
commit-bot: I haz the power
4 years ago (2016-12-05 23:30:30 UTC) #19
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/d3dd2cafa37a9985dc4907ee364d9229b6c0006a
Cr-Commit-Position: refs/heads/master@{#436447}

Powered by Google App Engine
This is Rietveld 408576698