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

Issue 2946233003: cros: stop forcing off display when powerd reports SuspendDone (Closed)

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

Description

cros: stop forcing off display when powerd reports SuspendDone Changes: As title: stop forcing off display when powerd reports SuspendDone for convertible/tablet device. There can be edge case that "system suspends with backlights forced off, and then user presses power button, which will resume system, but this power button event is not delivered to Chrome. When powerd reports SuspendDone, we can do stopping forcing off anyway to prevent this kind of edge case. R=derat@chromium.org BUG=735291 TEST=added test coverage TabletPowerButtonControllerTest.SuspendDoneStopsForcingOff Review-Url: https://codereview.chromium.org/2946233003 Cr-Commit-Position: refs/heads/master@{#481617} Committed: https://chromium.googlesource.com/chromium/src/+/be4e46518a93692f402a69363bcaab66ae11b1e3

Patch Set 1 #

Total comments: 6

Patch Set 2 : nits #

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

Messages

Total messages: 9 (4 generated)
Qiang(Joe) Xu
3 years, 6 months ago (2017-06-22 07:13:55 UTC) #1
Daniel Erat
lgtm https://codereview.chromium.org/2946233003/diff/1/ash/system/power/tablet_power_button_controller.cc File ash/system/power/tablet_power_button_controller.cc (right): https://codereview.chromium.org/2946233003/diff/1/ash/system/power/tablet_power_button_controller.cc#newcode164 ash/system/power/tablet_power_button_controller.cc:164: // resuming, but power button event is not ...
3 years, 6 months ago (2017-06-22 18:08:40 UTC) #2
Qiang(Joe) Xu
done, thanks for review! https://codereview.chromium.org/2946233003/diff/1/ash/system/power/tablet_power_button_controller.cc File ash/system/power/tablet_power_button_controller.cc (right): https://codereview.chromium.org/2946233003/diff/1/ash/system/power/tablet_power_button_controller.cc#newcode164 ash/system/power/tablet_power_button_controller.cc:164: // resuming, but power button ...
3 years, 6 months ago (2017-06-22 18:36:37 UTC) #3
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/2946233003/20001
3 years, 6 months ago (2017-06-22 18:37:04 UTC) #6
commit-bot: I haz the power
3 years, 6 months ago (2017-06-22 19:11:59 UTC) #9
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/be4e46518a93692f402a69363bca...

Powered by Google App Engine
This is Rietveld 408576698