diff options
author | bartfab@chromium.org <bartfab@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-29 01:47:20 +0000 |
---|---|---|
committer | bartfab@chromium.org <bartfab@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-29 01:47:20 +0000 |
commit | 1c37204f3a91515d2df8af6ed7659e46f48725d6 (patch) | |
tree | 5d314717c219f4cc8d9df43c946b5e8271193ec3 /chrome/app/policy | |
parent | dbbec3a0133edaff11b16c6bc3fd73aac8ab4e31 (diff) | |
download | chromium_src-1c37204f3a91515d2df8af6ed7659e46f48725d6.zip chromium_src-1c37204f3a91515d2df8af6ed7659e46f48725d6.tar.gz chromium_src-1c37204f3a91515d2df8af6ed7659e46f48725d6.tar.bz2 |
Add separate PowerIdleAction prefs for AC and battery power
This CL replaces the PowerIdleAction pref with a PowerAcIdleAction pref
and a PowerBatteryIdleAction pref, allowing different idle actions to be
specified when running on AC and battery power. This is a prerequisite
for allowing Chrome to control power management on the login screen where
different actions are needed.
Enterprise user policies are update accordingly, replacing IdleAction with
IdleActionAC and IdleActionBattery.
BUG=254404
TEST=Updated browser and unit tests
Review URL: https://chromiumcodereview.appspot.com/18051012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@209265 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/app/policy')
-rw-r--r-- | chrome/app/policy/policy_templates.json | 59 |
1 files changed, 52 insertions, 7 deletions
diff --git a/chrome/app/policy/policy_templates.json b/chrome/app/policy/policy_templates.json index e0d0629..aa498a2 100644 --- a/chrome/app/policy/policy_templates.json +++ b/chrome/app/policy/policy_templates.json @@ -112,7 +112,7 @@ # persistent IDs for all fields (but not for groups!) are needed. These are # specified by the 'id' keys of each policy. NEVER CHANGE EXISTING IDs, # because doing so would break the deployed wire format! -# For your editing convenience: highest ID currently used: 221 +# For your editing convenience: highest ID currently used: 222 # # Placeholders: # The following placeholder strings are automatically substituted: @@ -4247,7 +4247,7 @@ The policy value should be specified in milliseconds.''', }, { - 'name': 'IdleAction', + 'name': 'IdleActionAC', 'type': 'int-enum', 'schema': { 'type': 'integer', @@ -4262,7 +4262,7 @@ { 'name': 'IdleActionLogout', 'value': 1, - 'caption': '''Log out the user''', + 'caption': '''Log the user out''', }, { 'name': 'IdleActionShutdown', @@ -4275,15 +4275,60 @@ 'caption': '''Do nothing''', }, ], - 'supported_on': ['chrome_os:26-'], + 'supported_on': ['chrome_os:30-'], 'features': { 'dynamic_refresh': True, 'per_profile': False, }, 'example_value': 0, 'id': 180, - 'caption': '''Action to take when the idle delay is reached''', - 'desc': '''Specify the action to take when the idle delay is reached. + 'caption': '''Action to take when the idle delay is reached while running on AC power''', + 'desc': '''Specify the action to take when the idle delay is reached while running on AC power. + + When this policy is set, it specifies the action that <ph name="PRODUCT_OS_NAME">$2<ex>Google Chrome OS</ex></ph> takes when the user remains idle for the length of time given by the idle delay, which can be configured separately. + + When this policy is unset, the default action is taken, which is suspend. + + If the action is suspend, <ph name="PRODUCT_OS_NAME">$2<ex>Google Chrome OS</ex></ph> can separately be configured to either lock or not lock the screen before suspending.''', + }, + { + 'name': 'IdleActionBattery', + 'type': 'int-enum', + 'schema': { + 'type': 'integer', + 'enum': [ 0, 1, 2, 3 ], + }, + 'items': [ + { + 'name': 'IdleActionSuspend', + 'value': 0, + 'caption': '''Suspend''', + }, + { + 'name': 'IdleActionLogout', + 'value': 1, + 'caption': '''Log the user out''', + }, + { + 'name': 'IdleActionShutdown', + 'value': 2, + 'caption': '''Shut down''', + }, + { + 'name': 'IdleActionDoNothing', + 'value': 3, + 'caption': '''Do nothing''', + }, + ], + 'supported_on': ['chrome_os:30-'], + 'features': { + 'dynamic_refresh': True, + 'per_profile': False, + }, + 'example_value': 0, + 'id': 222, + 'caption': '''Action to take when the idle delay is reached while running on battery power''', + 'desc': '''Specify the action to take when the idle delay is reached while running on battery power. When this policy is set, it specifies the action that <ph name="PRODUCT_OS_NAME">$2<ex>Google Chrome OS</ex></ph> takes when the user remains idle for the length of time given by the idle delay, which can be configured separately. @@ -4307,7 +4352,7 @@ { 'name': 'LidCloseActionLogout', 'value': 1, - 'caption': '''Log out the user''', + 'caption': '''Log the user out''', }, { 'name': 'LidCloseActionShutdown', |