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

Issue 2662903002: chromeos: Avoid shutdown for delayed power button events. (Closed)

Created:
3 years, 10 months ago by Daniel Erat
Modified:
3 years, 10 months ago
Reviewers:
Qiang(Joe) Xu
CC:
chromium-reviews
Target Ref:
refs/pending/branch-heads/2987
Project:
chromium
Visibility:
Public.

Description

chromeos: Avoid shutdown for delayed power button events. powerd makes blocking D-Bus calls to Chrome to turn the display on or off. When a power-button-down event turns the display on, this can result in the corresponding power-button-up event being delayed, which can then cause the system to be shut down prematurely. As a hopefully low-risk workaround for this, make TabletPowerButtonController wait 2000 (rather than 500) milliseconds before starting the shutdown animation if the screen was off when the power button was pressed. BUG=685734 NOTRY=true NOPRESUBMIT=true Review-Url: https://codereview.chromium.org/2651313004 Cr-Commit-Position: refs/heads/master@{#446832} (cherry picked from commit 97f83d816742eef5677384925fd92d10eaa7dc9a) Review-Url: https://codereview.chromium.org/2662903002 Cr-Commit-Position: refs/branch-heads/2987@{#188} Cr-Branched-From: ad51088c0e8776e8dcd963dbe752c4035ba6dab6-refs/heads/master@{#444943} Committed: https://chromium.googlesource.com/chromium/src/+/85d16735d1bdb59df1a1c229e8d381aa1a1a92f5

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -5 lines) Patch
M ash/system/chromeos/power/tablet_power_button_controller.cc View 2 chunks +13 lines, -5 lines 0 comments Download

Messages

Total messages: 27 (14 generated)
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/2662903002/1
3 years, 10 months ago (2017-01-30 18:01:06 UTC) #2
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. CQ run can only be started by full ...
3 years, 10 months ago (2017-01-30 18:01:07 UTC) #4
Daniel Erat
this is the same as before, but "git drover" failed (transient error, i think) so ...
3 years, 10 months ago (2017-01-30 18:02:45 UTC) #6
Qiang(Joe) Xu
On 2017/01/30 18:02:45, Daniel Erat wrote: > this is the same as before, but "git ...
3 years, 10 months ago (2017-01-30 18:24:43 UTC) #7
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/2662903002/1
3 years, 10 months ago (2017-01-30 20:43:35 UTC) #9
commit-bot: I haz the power
CLs for remote refs other than refs/heads/master must contain NOTRY=true and NOPRESUBMIT=true in order for ...
3 years, 10 months ago (2017-01-30 20:43:37 UTC) #11
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/2662903002/1
3 years, 10 months ago (2017-01-30 20:51:01 UTC) #14
commit-bot: I haz the power
Failed to commit the patch.
3 years, 10 months ago (2017-01-30 21:01:30 UTC) #19
Daniel Erat
On 2017/01/30 21:01:30, commit-bot: I haz the power wrote: > Failed to commit the patch. ...
3 years, 10 months ago (2017-01-30 21:30:16 UTC) #20
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/2662903002/1
3 years, 10 months ago (2017-01-30 21:31:05 UTC) #22
Qiang(Joe) Xu
On 2017/01/30 21:30:16, Daniel Erat wrote: > On 2017/01/30 21:01:30, commit-bot: I haz the power ...
3 years, 10 months ago (2017-01-30 21:32:08 UTC) #23
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://chromium.googlesource.com/chromium/src/+/85d16735d1bdb59df1a1c229e8d381aa1a1a92f5
3 years, 10 months ago (2017-01-30 21:34:03 UTC) #26
Daniel Erat
3 years, 10 months ago (2017-01-30 21:51:28 UTC) #27
Message was sent while issue was closed.
On 2017/01/30 21:34:03, commit-bot: I haz the power wrote:
> Committed patchset #1 (id:1) as
>
https://chromium.googlesource.com/chromium/src/+/85d16735d1bdb59df1a1c229e8d3...

hmm. i guess it works. :-)

Powered by Google App Engine
This is Rietveld 408576698