Add WaitForInitialUserActivity policy
commit8e0ba06bd3a63a6d5ae3a342bc1321146b6e18b7
authorbartfab@chromium.org <bartfab@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Mon, 28 Oct 2013 15:38:09 +0000 (28 15:38 +0000)
committerbartfab@chromium.org <bartfab@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Mon, 28 Oct 2013 15:38:09 +0000 (28 15:38 +0000)
tree3c02b16e484c093b1d93d7a36df5587bb83fcc5c
parent820d0d94af4eb2b96fc416de874e477feafae3d9
Add WaitForInitialUserActivity policy

This CL adds a user policy that controls whether power management delays
and the session length limit should only start running after initial user
activity in a session. The SessionLengthLimiter is modified to obey the
new policy. Power management will hooked up to the new policy in a
follow-up CL.

It would technically be possible to add separate policies that determine
whether power management delays on the one hand and the session length
limit on the other hand should wait for initial user activity. However,
it does not make sense for one of these to start running on session start
while the other waits for user activity. Therefore, a single policy is
added for both.

BUG=310176
TEST=Updated unit and browser tests

Review URL: https://codereview.chromium.org/35943002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231332 0039d316-1c4b-4281-b951-d872f2087c98
chrome/app/policy/policy_templates.json
chrome/browser/chromeos/power/power_prefs.cc
chrome/browser/chromeos/session_length_limiter.cc
chrome/browser/chromeos/session_length_limiter.h
chrome/browser/chromeos/session_length_limiter_unittest.cc
chrome/browser/policy/configuration_policy_handler_list.cc
chrome/browser/policy/policy_browsertest.cc
chrome/common/pref_names.cc
chrome/common/pref_names.h
chrome/test/data/policy/policy_test_cases.json