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

Issue 15734010: chromeos: Add delay between screen off and lock. (Closed)

Created:
7 years, 7 months ago by Daniel Erat
Modified:
7 years, 6 months ago
CC:
chromium-reviews, derat+watch_chromium.org, oshima+watch_chromium.org, stevenjb+watch_chromium.org, nkostylev+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

chromeos: Add delay between screen off and lock. This adds a ten-second delay between the time at which the screen is turned off due to user inactivity and the time at which it's locked. It also fixes an issue where screen wake locks (as used by video playback or by the chrome.power extension API) wouldn't clear lock delays. BUG=239486, 246008 R=bartfab@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=203774

Patch Set 1 #

Total comments: 9

Patch Set 2 : switch to simpler approach using a constant #

Total comments: 4

Patch Set 3 : make screen wake locks unset screen lock delays #

Total comments: 2

Patch Set 4 : add comment describing ms delay in sec #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -14 lines) Patch
M chromeos/dbus/power_policy_controller.h View 1 1 chunk +6 lines, -0 lines 0 comments Download
M chromeos/dbus/power_policy_controller.cc View 1 2 3 4 chunks +15 lines, -10 lines 0 comments Download
M chromeos/dbus/power_policy_controller_unittest.cc View 1 2 3 chunks +27 lines, -4 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Daniel Erat
https://codereview.chromium.org/15734010/diff/1/chrome/browser/chromeos/policy/power_policy_browsertest.cc File chrome/browser/chromeos/policy/power_policy_browsertest.cc (right): https://codereview.chromium.org/15734010/diff/1/chrome/browser/chromeos/policy/power_policy_browsertest.cc#newcode75 chrome/browser/chromeos/policy/power_policy_browsertest.cc:75: if (user_policy_name == key::kScreenLockDelayAC || This feels gross; let ...
7 years, 7 months ago (2013-05-22 17:12:34 UTC) #1
Mattias Nissler (ping if slow)
Discussed this with Bartosz. We think we found a solution that let's us: - keep ...
7 years, 6 months ago (2013-05-31 13:22:46 UTC) #2
bartfab (slow)
https://codereview.chromium.org/15734010/diff/1/chromeos/dbus/power_policy_controller.cc File chromeos/dbus/power_policy_controller.cc (right): https://codereview.chromium.org/15734010/diff/1/chromeos/dbus/power_policy_controller.cc#newcode147 chromeos/dbus/power_policy_controller.cc:147: values.enable_screen_lock ? values.ac_screen_lock_delay_ms : 0); On 2013/05/31 13:22:46, Mattias ...
7 years, 6 months ago (2013-05-31 13:35:59 UTC) #3
bartfab (slow)
https://codereview.chromium.org/15734010/diff/1/chromeos/dbus/power_policy_controller.cc File chromeos/dbus/power_policy_controller.cc (right): https://codereview.chromium.org/15734010/diff/1/chromeos/dbus/power_policy_controller.cc#newcode147 chromeos/dbus/power_policy_controller.cc:147: values.enable_screen_lock ? values.ac_screen_lock_delay_ms : 0); On 2013/05/31 13:35:59, bartfab ...
7 years, 6 months ago (2013-05-31 13:37:31 UTC) #4
Daniel Erat
https://codereview.chromium.org/15734010/diff/1/chromeos/dbus/power_policy_controller.cc File chromeos/dbus/power_policy_controller.cc (right): https://codereview.chromium.org/15734010/diff/1/chromeos/dbus/power_policy_controller.cc#newcode147 chromeos/dbus/power_policy_controller.cc:147: values.enable_screen_lock ? values.ac_screen_lock_delay_ms : 0); On 2013/05/31 13:37:32, bartfab ...
7 years, 6 months ago (2013-05-31 13:41:58 UTC) #5
Daniel Erat
Please take another look. On the bright side, this approach is much simpler and seems ...
7 years, 6 months ago (2013-05-31 14:26:25 UTC) #6
bartfab (slow)
https://chromiumcodereview.appspot.com/15734010/diff/7001/chromeos/dbus/power_policy_controller.cc File chromeos/dbus/power_policy_controller.cc (right): https://chromiumcodereview.appspot.com/15734010/diff/7001/chromeos/dbus/power_policy_controller.cc#newcode61 chromeos/dbus/power_policy_controller.cc:61: const int PowerPolicyController::kScreenLockAfterOffDelayMs = 10000; Should we make this ...
7 years, 6 months ago (2013-05-31 17:39:06 UTC) #7
Daniel Erat
https://chromiumcodereview.appspot.com/15734010/diff/7001/chromeos/dbus/power_policy_controller.cc File chromeos/dbus/power_policy_controller.cc (right): https://chromiumcodereview.appspot.com/15734010/diff/7001/chromeos/dbus/power_policy_controller.cc#newcode61 chromeos/dbus/power_policy_controller.cc:61: const int PowerPolicyController::kScreenLockAfterOffDelayMs = 10000; On 2013/05/31 17:39:07, bartfab ...
7 years, 6 months ago (2013-06-01 03:19:43 UTC) #8
Daniel Erat
Please take another look; I've added a tiny fix for a related issue.
7 years, 6 months ago (2013-06-02 13:57:04 UTC) #9
bartfab (slow)
lgtm https://codereview.chromium.org/15734010/diff/13001/chromeos/dbus/power_policy_controller.cc File chromeos/dbus/power_policy_controller.cc (right): https://codereview.chromium.org/15734010/diff/13001/chromeos/dbus/power_policy_controller.cc#newcode61 chromeos/dbus/power_policy_controller.cc:61: const int PowerPolicyController::kScreenLockAfterOffDelayMs = 10000; Nit: We usually ...
7 years, 6 months ago (2013-06-03 08:28:59 UTC) #10
Daniel Erat
https://codereview.chromium.org/15734010/diff/13001/chromeos/dbus/power_policy_controller.cc File chromeos/dbus/power_policy_controller.cc (right): https://codereview.chromium.org/15734010/diff/13001/chromeos/dbus/power_policy_controller.cc#newcode61 chromeos/dbus/power_policy_controller.cc:61: const int PowerPolicyController::kScreenLockAfterOffDelayMs = 10000; On 2013/06/03 08:28:59, bartfab ...
7 years, 6 months ago (2013-06-03 13:15:03 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/derat@chromium.org/15734010/20001
7 years, 6 months ago (2013-06-03 14:58:53 UTC) #12
Daniel Erat
7 years, 6 months ago (2013-06-03 21:24:23 UTC) #13
Message was sent while issue was closed.
Committed patchset #4 manually as r203774 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698