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

Issue 2664683002: ash: Drop the immediately following power button released induced forcing off request (Closed)

Created:
3 years, 10 months ago by Qiang(Joe) Xu
Modified:
3 years, 10 months 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: Drop the immediately following power button released induced forcing off request Changes: Record last power button released time and drop the immediately following (within 500ms) power button released induced forcing off request. BUG=675291 TEST=device test: when screen is on, pressing/releasing side power button quickly, will see screen is off for only the first time. Behavior doesn't change for other cases. Also, test coverage TabletPowerButtonControllerTest.IgnoreRepeatedPowerButtonReleases is added. Review-Url: https://codereview.chromium.org/2664683002 Cr-Commit-Position: refs/heads/master@{#447081} Committed: https://chromium.googlesource.com/chromium/src/+/e735c591f218ba5c5a315fb5973bacf3d41e25b8

Patch Set 1 #

Patch Set 2 : better comments #

Total comments: 15

Patch Set 3 : comments from ps2 #

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

Messages

Total messages: 19 (13 generated)
Qiang(Joe) Xu
Hi Daniel, ptal, thanks!
3 years, 10 months ago (2017-01-30 17:36:49 UTC) #8
Daniel Erat
thanks for the tests! i mostly just have naming and comment suggestions. https://codereview.chromium.org/2664683002/diff/20001/ash/system/chromeos/power/tablet_power_button_controller.cc File ash/system/chromeos/power/tablet_power_button_controller.cc ...
3 years, 10 months ago (2017-01-30 17:55:00 UTC) #9
Qiang(Joe) Xu
Hi Daniel, new patch uploaded, ptal, thanks! https://codereview.chromium.org/2664683002/diff/20001/ash/system/chromeos/power/tablet_power_button_controller.cc File ash/system/chromeos/power/tablet_power_button_controller.cc (right): https://codereview.chromium.org/2664683002/diff/20001/ash/system/chromeos/power/tablet_power_button_controller.cc#newcode40 ash/system/chromeos/power/tablet_power_button_controller.cc:40: constexpr int ...
3 years, 10 months ago (2017-01-30 19:35:44 UTC) #13
Daniel Erat
lgtm
3 years, 10 months ago (2017-01-30 20:55:27 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/2664683002/50001
3 years, 10 months ago (2017-01-30 21:19:02 UTC) #16
commit-bot: I haz the power
3 years, 10 months ago (2017-01-30 21:53:51 UTC) #19
Message was sent while issue was closed.
Committed patchset #3 (id:50001) as
https://chromium.googlesource.com/chromium/src/+/e735c591f218ba5c5a315fb5973b...

Powered by Google App Engine
This is Rietveld 408576698