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

Unified Diff: chrome/app/policy/policy_templates.json

Issue 18153007: Add policies to control power management on the Chrome OS login screen (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/app/policy/policy_templates.json
diff --git a/chrome/app/policy/policy_templates.json b/chrome/app/policy/policy_templates.json
index aa498a2dcdb19731c1079f2488c64364dbe590f4..6195b42b1c87058932a0cd5a39eb9c84b6d8e804 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: 222
+# For your editing convenience: highest ID currently used: 232
#
# Placeholders:
# The following placeholder strings are automatically substituted:
@@ -4493,6 +4493,278 @@
],
},
{
+ 'name': 'DeviceLoginScreenPowerManagement',
+ 'type': 'group',
+ 'caption': '''Power mangement on the login screen''',
+ 'desc': '''Configure power management on the login screen in <ph name="PRODUCT_OS_NAME">$2<ex>Google Chrome OS</ex></ph>.
+
+ These policies let you configure how <ph name="PRODUCT_OS_NAME">$2<ex>Google Chrome OS</ex></ph> behaves when there is no user activity for some amount of time while the login screen is being shown.''',
+ 'policies': [
+ {
+ 'name': 'DeviceLoginScreenScreenDimDelayAC',
+ 'type': 'int',
+ 'schema': { 'type': 'integer' },
+ 'supported_on': ['chrome_os:30-'],
+ 'device_only': True,
+ 'features': {
+ 'dynamic_refresh': True,
+ },
+ 'example_value': 420000,
+ 'id': 223,
+ 'caption': '''Screen dim delay on the login screen when running on AC power''',
+ 'desc': '''Specifies the length of time without user activity after which the screen is dimmed when the login screen is being shown and the device is running on AC power.
+
+ When this policy is set to a value greater than zero, it specifies the length of time without user activity after which <ph name="PRODUCT_OS_NAME">$2<ex>Google Chrome OS</ex></ph> dims the screen when the login screen is being shown.
+
+ When this policy is set to zero, <ph name="PRODUCT_OS_NAME">$2<ex>Google Chrome OS</ex></ph> does not dim the screen even if there is no user activity for a prolonged time.
+
+ When this policy is unset, a default length of time is used.
+
+ The policy value should be specified in milliseconds. Values are clamped to be less than or equal the screen off delay (if set) and the idle delay.''',
+ },
+ {
+ 'name': 'DeviceLoginScreenScreenOffDelayAC',
+ 'type': 'int',
+ 'schema': { 'type': 'integer' },
+ 'supported_on': ['chrome_os:30-'],
+ 'device_only': True,
+ 'features': {
+ 'dynamic_refresh': True,
+ },
+ 'example_value': 480000,
+ 'id': 224,
+ 'caption': '''Screen off delay on the login screen when running on AC power''',
+ 'desc': '''Specifies the length of time without user activity after which the screen is turned off when the login screen is being shown and the device is running on AC power.
+
+ When this policy is set to a value greater than zero, it specifies the length of time without user activity after which <ph name="PRODUCT_OS_NAME">$2<ex>Google Chrome OS</ex></ph> turns off the screen when the login screen is being shown.
+
+ When this policy is set to zero, <ph name="PRODUCT_OS_NAME">$2<ex>Google Chrome OS</ex></ph> does not turn off the screen even if there is no user activity for a prolonged time.
+
+ When this policy is unset, a default length of time is used.
+
+ The policy value should be specified in milliseconds. Values are clamped to be less than or equal the idle delay.''',
+ },
+ {
+ 'name': 'DeviceLoginScreenIdleDelayAC',
+ 'type': 'int',
+ 'schema': { 'type': 'integer' },
+ 'supported_on': ['chrome_os:30-'],
+ 'device_only': True,
+ 'features': {
+ 'dynamic_refresh': True,
+ },
+ 'example_value': 1800000,
+ 'id': 225,
+ 'caption': '''Idle delay on the login screen when running on AC power''',
+ 'desc': '''Specifies the length of time without user activity after which the idle action is taken when the login screen is being shown and the device is running on AC power.
+
+ When this policy is set, it specifies the length of time without user activity after which <ph name="PRODUCT_OS_NAME">$2<ex>Google Chrome OS</ex></ph> takes the idle action, which can be configured separately, when the login screen is being shown.
+
+ When this policy is unset, a default length of time is used.
+
+ The policy value should be specified in milliseconds.''',
+ },
+ {
+ 'name': 'DeviceLoginScreenScreenDimDelayBattery',
+ 'type': 'int',
+ 'schema': { 'type': 'integer' },
+ 'supported_on': ['chrome_os:30-'],
+ 'device_only': True,
+ 'features': {
+ 'dynamic_refresh': True,
+ },
+ 'example_value': 300000,
+ 'id': 226,
+ 'caption': '''Screen dim delay on the login screen when running on battery power''',
+ 'desc': '''Specifies the length of time without user activity after which the screen is dimmed when the login screen is being shown and the device is running on battery power.
+
+ When this policy is set to a value greater than zero, it specifies the length of time without user activity after which <ph name="PRODUCT_OS_NAME">$2<ex>Google Chrome OS</ex></ph> dims the screen when the login screen is being shown.
+
+ When this policy is set to zero, <ph name="PRODUCT_OS_NAME">$2<ex>Google Chrome OS</ex></ph> does not dim the screen even if there is no user activity for a prolonged time.
+
+ When this policy is unset, a default length of time is used.
+
+ The policy value should be specified in milliseconds. Values are clamped to be less than or equal the screen off delay (if set) and the idle delay.''',
+ },
+ {
+ 'name': 'DeviceLoginScreenScreenOffDelayBattery',
+ 'type': 'int',
+ 'schema': { 'type': 'integer' },
+ 'supported_on': ['chrome_os:30-'],
+ 'device_only': True,
+ 'features': {
+ 'dynamic_refresh': True,
+ },
+ 'example_value': 360000,
+ 'id': 227,
+ 'caption': '''Screen off delay on the login screen when running on battery power''',
+ 'desc': '''Specifies the length of time without user activity after which the screen is turned off when the login screen is being shown and the device is running on battery power.
+
+ When this policy is set to a value greater than zero, it specifies the length of time without user activity after which <ph name="PRODUCT_OS_NAME">$2<ex>Google Chrome OS</ex></ph> turns off the screen when the login screen is being shown.
+
+ When this policy is set to zero, <ph name="PRODUCT_OS_NAME">$2<ex>Google Chrome OS</ex></ph> does not turn off the screen even if there is no user activity for a prolonged time.
+
+ When this policy is unset, a default length of time is used.
+
+ The policy value should be specified in milliseconds. Values are clamped to be less than or equal the idle delay.''',
+ },
+ {
+ 'name': 'DeviceLoginScreenIdleDelayBattery',
+ 'type': 'int',
+ 'schema': { 'type': 'integer' },
+ 'supported_on': ['chrome_os:30-'],
+ 'device_only': True,
+ 'features': {
+ 'dynamic_refresh': True,
+ },
+ 'example_value': 600000,
+ 'id': 228,
+ 'caption': '''Idle delay on the login screen when running on battery power''',
+ 'desc': '''Specifies the length of time without user activity after which the idle action is taken when the login screen is being shown and the device is running on battery power.
+
+ When this policy is set, it specifies the length of time without user activity after which <ph name="PRODUCT_OS_NAME">$2<ex>Google Chrome OS</ex></ph> takes the idle action, which can be configured separately, when the login screen is being shown.
+
+ When this policy is unset, a default length of time is used.
+
+ The policy value should be specified in milliseconds.''',
+ },
+ {
+ 'name': 'DeviceLoginScreenIdleActionAC',
+ 'type': 'int-enum',
+ 'schema': {
+ 'type': 'integer',
+ 'enum': [ 0, 2, 3 ],
+ },
+ 'items': [
+ {
+ 'name': 'IdleActionSuspend',
+ 'value': 0,
+ 'caption': '''Suspend''',
+ },
+ {
+ 'name': 'IdleActionShutdown',
+ 'value': 2,
+ 'caption': '''Shut down''',
+ },
+ {
+ 'name': 'IdleActionDoNothing',
+ 'value': 3,
+ 'caption': '''Do nothing''',
+ },
+ ],
+ 'supported_on': ['chrome_os:30-'],
+ 'device_only': True,
+ 'features': {
+ 'dynamic_refresh': True,
+ },
+ 'example_value': 0,
+ 'id': 229,
+ 'caption': '''Action to take when the idle delay is reached on the login screen while running on AC power''',
+ 'desc': '''Specifies the action to take when the idle delay is reached while the login screen is being shown and the device is 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 login screen is being shown and there is no user activity 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.''',
+ },
+ {
+ 'name': 'DeviceLoginScreenIdleActionBattery',
+ 'type': 'int-enum',
+ 'schema': {
+ 'type': 'integer',
+ 'enum': [ 0, 2, 3 ],
+ },
+ 'items': [
+ {
+ 'name': 'IdleActionSuspend',
+ 'value': 0,
+ 'caption': '''Suspend''',
+ },
+ {
+ 'name': 'IdleActionShutdown',
+ 'value': 2,
+ 'caption': '''Shut down''',
+ },
+ {
+ 'name': 'IdleActionDoNothing',
+ 'value': 3,
+ 'caption': '''Do nothing''',
+ },
+ ],
+ 'supported_on': ['chrome_os:30-'],
+ 'device_only': True,
+ 'features': {
+ 'dynamic_refresh': True,
+ },
+ 'example_value': 0,
+ 'id': 230,
+ 'caption': '''Action to take when the idle delay is reached on the login screen while running on battery power''',
+ 'desc': '''Specifies the action to take when the idle delay is reached while the login screen is being shown and the device is 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 login screen is being shown and there is no user activity 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 shut down.''',
+ },
+ {
+ 'name': 'DeviceLoginScreenLidCloseAction',
+ 'type': 'int-enum',
+ 'schema': {
+ 'type': 'integer',
+ 'enum': [ 0, 2, 3 ],
+ },
+ 'items': [
+ {
+ 'name': 'LidCloseActionSuspend',
+ 'value': 0,
+ 'caption': '''Suspend''',
+ },
+ {
+ 'name': 'LidCloseActionShutdown',
+ 'value': 2,
+ 'caption': '''Shut down''',
+ },
+ {
+ 'name': 'LidCloseActionDoNothing',
+ 'value': 3,
+ 'caption': '''Do nothing''',
+ },
+ ],
+ 'supported_on': ['chrome_os:30-'],
+ 'device_only': True,
+ 'features': {
+ 'dynamic_refresh': True,
+ },
+ 'example_value': 0,
+ 'id': 231,
+ 'caption': '''Action to take when the user closes the lid on the login screen''',
+ 'desc': '''Specifies the action to take when the user closes the lid while the login screen is being shown.
+
+ 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 login screen is being shown and the user closes the device's lid.
+
+ When this policy is unset, the default action is taken, which is shut down.''',
+ },
+ {
+ 'name': 'DeviceLoginScreenUserActivityScreenDimDelayScale',
+ 'type': 'int',
+ 'schema': { 'type': 'integer' },
+ 'supported_on': ['chrome_os:30-'],
+ 'device_only': True,
+ 'features': {
+ 'dynamic_refresh': True,
+ },
+ 'example_value': 200,
+ 'id': 232,
+ 'caption': '''Percentage by which to scale the screen dim delay on the login screen if the user becomes active after dimming''',
+ 'desc': '''Specifies the percentage by which the screen dim delay is scaled when user activity is observed while the screen is dimmed or soon after the screen has been turned off while the login screen is being shown.
+
+ If this policy is set, it specifies the percentage by which the screen dim delay is scaled when the login screen is being shown and user activity is observed while the screen is dimmed or soon after the screen has been turned off. When the dim delay is scaled, the screen off, screen lock and idle delays get adjusted to maintain the same distances from the screen dim delay as originally configured.
+
+ If this policy is unset, a default scale factor is used.
+
+ The scale factor must be 100% or more.''',
+ },
+ ],
+ },
+ {
'name': 'DeviceAllowRedeemChromeOsRegistrationOffers',
'type': 'main',
'schema': { 'type': 'boolean' },
« no previous file with comments | « no previous file | chrome/browser/chromeos/chrome_browser_main_chromeos.h » ('j') | chrome/browser/chromeos/power/power_prefs.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698