| Index: chrome/app/policy/policy_templates.json
|
| diff --git a/chrome/app/policy/policy_templates.json b/chrome/app/policy/policy_templates.json
|
| index e06157a89b107c957eafb52502e2f89a85855487..bea7fa1045e8ab2636e290f4de70d5bc54357655 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: 223
|
| +# For your editing convenience: highest ID currently used: 224
|
| #
|
| # Placeholders:
|
| # The following placeholder strings are automatically substituted:
|
| @@ -4493,6 +4493,94 @@
|
| ],
|
| },
|
| {
|
| + # TODO(bartfab): Change the policy type to 'dict' once this is fully
|
| + # supported. http://crbug.com/258339
|
| + 'name': 'DeviceLoginScreenPowerManagement',
|
| + 'type': 'string',
|
| + 'schema': { 'type': 'string' },
|
| + 'supported_on': ['chrome_os:30-'],
|
| + 'device_only': True,
|
| + 'features': {
|
| + 'dynamic_refresh': True,
|
| + },
|
| + 'example_value': '{ "AC": { "IdleAction": 3 }, "Battery": { "IdleAction": 3 } }',
|
| + 'id': 224,
|
| + '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>.
|
| +
|
| + This policy lets 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. The policy controls multiple settings. For their individual semantics and value ranges, see the corresponding policies that control power management within a session. The only deviations from these policies are:
|
| + * The actions to take on idle or lid close cannot be to end the session.
|
| + * The default action taken on idle when running on AC power is to shut down.
|
| +
|
| + The policy should be specified as a string that expresses the individual settings in JSON format, conforming to the following schema:
|
| + {
|
| + "type": "object",
|
| + "properties": {
|
| + "AC": {
|
| + "type": "object",
|
| + "properties": {
|
| + "Delays": {
|
| + "type": "object",
|
| + "properties": {
|
| + "ScreenDim": {
|
| + "type": "integer",
|
| + "minimum": 0
|
| + },
|
| + "ScreenOff": {
|
| + "type": "integer",
|
| + "minimum": 0
|
| + },
|
| + "Idle": {
|
| + "type": "integer",
|
| + "minimum": 0
|
| + }
|
| + }
|
| + },
|
| + "IdleAction": {
|
| + "enum": [ "Suspend", "Shutdown", "DoNothing" ]
|
| + }
|
| + }
|
| + },
|
| + "Battery": {
|
| + "type": "object",
|
| + "properties": {
|
| + "Delays": {
|
| + "type": "object",
|
| + "properties": {
|
| + "ScreenDim": {
|
| + "type": "integer",
|
| + "minimum": 0
|
| + },
|
| + "ScreenOff": {
|
| + "type": "integer",
|
| + "minimum": 0
|
| + },
|
| + "Idle": {
|
| + "type": "integer",
|
| + "minimum": 0
|
| + }
|
| + }
|
| + },
|
| + "IdleAction": {
|
| + "enum": [ "Suspend", "Shutdown", "DoNothing" ]
|
| + }
|
| + }
|
| + },
|
| + "LidCloseAction": {
|
| + "enum": [ "Suspend", "Shutdown", "DoNothing" ]
|
| + },
|
| + "UserActivityScreenDimDelayScale": {
|
| + "type": "integer",
|
| + "minimum": 100
|
| + }
|
| + }
|
| + }
|
| +
|
| + If a setting is left unspecified, a default value is used.
|
| +
|
| + If this policy is unset, defaults are used for all settings.''',
|
| + },
|
| + {
|
| 'name': 'DeviceAllowRedeemChromeOsRegistrationOffers',
|
| 'type': 'main',
|
| 'schema': { 'type': 'boolean' },
|
|
|