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

Issue 793973002: chromeos: Add separate screen dim/off delays for lock screen (Closed)

Created:
6 years ago by Daniel Erat
Modified:
6 years ago
Reviewers:
bartfab (slow)
CC:
chromium-reviews, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, oshima+watch_chromium.org, nkostylev+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

chromeos: Add separate screen dim/off delays for lock screen Add power.lock_screen_dim_delay_ms and power.lock_screen_off_delay_ms prefs that provide alternate screen-dim and screen-off inactivity delays that are honored while the screen is locked. They currently default to 30 and 40 seconds, respectively. BUG=190499 Committed: https://crrev.com/da6705ff33881322561d1de86b4b221fde6498b2 Cr-Commit-Position: refs/heads/master@{#308131}

Patch Set 1 #

Total comments: 2

Patch Set 2 : add ScreenLockState enum for tests #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+88 lines, -22 lines) Patch
M chrome/browser/chromeos/power/power_prefs.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/power/power_prefs.cc View 6 chunks +31 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/power/power_prefs_unittest.cc View 1 10 chunks +47 lines, -17 lines 1 comment Download
M chrome/common/pref_names.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
Daniel Erat
i need to test this on a real device still, but i figured i'd run ...
6 years ago (2014-12-11 00:26:33 UTC) #2
bartfab (slow)
lgtm https://codereview.chromium.org/793973002/diff/1/chrome/browser/chromeos/power/power_prefs_unittest.cc File chrome/browser/chromeos/power/power_prefs_unittest.cc (right): https://codereview.chromium.org/793973002/diff/1/chrome/browser/chromeos/power/power_prefs_unittest.cc#newcode179 chrome/browser/chromeos/power/power_prefs_unittest.cc:179: EXPECT_EQ(GetExpectedPowerPolicyForProfile(login_profile, false), On 2014/12/11 00:26:33, Daniel Erat wrote: ...
6 years ago (2014-12-12 12:22:37 UTC) #3
Daniel Erat
thanks, i'd considered the second and third ideas. i've gone ahead with the third one ...
6 years ago (2014-12-12 17:36:39 UTC) #4
Daniel Erat
https://codereview.chromium.org/793973002/diff/20001/chrome/browser/chromeos/power/power_prefs_unittest.cc File chrome/browser/chromeos/power/power_prefs_unittest.cc (right): https://codereview.chromium.org/793973002/diff/20001/chrome/browser/chromeos/power/power_prefs_unittest.cc#newcode109 chrome/browser/chromeos/power/power_prefs_unittest.cc:109: screen_lock_state == LOCKED ? prefs::kPowerLockScreenDimDelayMs weird (to my eyes) ...
6 years ago (2014-12-12 17:38:18 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/793973002/20001
6 years ago (2014-12-12 17:38:53 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
6 years ago (2014-12-12 18:52:40 UTC) #8
commit-bot: I haz the power
6 years ago (2014-12-12 18:53:32 UTC) #9
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/da6705ff33881322561d1de86b4b221fde6498b2
Cr-Commit-Position: refs/heads/master@{#308131}

Powered by Google App Engine
This is Rietveld 408576698