Index: components/policy/resources/policy_templates.json |
diff --git a/components/policy/resources/policy_templates.json b/components/policy/resources/policy_templates.json |
index 8e7b1fb0f79e7e29d9484131a94a9e9bce76d344..ad0766e8d97f05ec81c624d87792ef1432673d62 100644 |
--- a/components/policy/resources/policy_templates.json |
+++ b/components/policy/resources/policy_templates.json |
@@ -5286,6 +5286,7 @@ |
'AC': { |
'description': 'Delays and actions to take when the device is idle and running on AC power', |
'type': 'object', |
+ 'id': 'ref_power_management_deleys', |
Joao da Silva
2014/04/08 15:02:10
Change the id to "PowerManagementDelays"
binjin
2014/04/09 11:00:36
Done.
|
'properties': { |
'Delays': { |
'type': 'object', |
@@ -5321,42 +5322,8 @@ |
}, |
'Battery': { |
'description': 'Delays and actions to take when the device is idle and running on battery', |
- 'type': 'object', |
- # TODO(binjin): Use $ref placeholder here once generated policy |
- # constants get full support of it. http://crbug.com/347082 |
- 'properties': { |
- 'Delays': { |
- 'type': 'object', |
- 'properties': { |
- 'ScreenDim': { |
- 'description': 'The length of time without user input after which the screen is dimmed, in milliseconds', |
- 'type': 'integer', |
- 'minimum': 0 |
- }, |
- 'ScreenOff': { |
- 'description': 'The length of time without user input after which the screen is turned off, in milliseconds', |
- 'type': 'integer', |
- 'minimum': 0 |
- }, |
- 'IdleWarning': { |
- 'description': 'The length of time without user input after which a warning dialog is shown, in milliseconds', |
- 'type': 'integer', |
- 'minimum': 0 |
- }, |
- 'Idle': { |
- 'description': 'The length of time without user input after which the idle action is taken, in milliseconds', |
- 'type': 'integer', |
- 'minimum': 0 |
- } |
- } |
- }, |
- 'IdleAction': { |
- 'description': 'Action to take when the idle delay is reached', |
- 'type': 'string', |
- 'enum': [ 'Suspend', 'Logout', 'Shutdown', 'DoNothing' ] |
- } |
- } |
- }, |
+ '$ref': 'ref_power_management_deleys' |
+ } |
} |
}, |
'supported_on': ['chrome_os:35-'], |
@@ -5453,6 +5420,7 @@ |
'AC': { |
'description': 'Power management settings applicable only when running on AC power', |
'type': 'object', |
+ 'id': 'ref_device_login_screen_power_settings', |
Joao da Silva
2014/04/08 15:02:10
Change the id to "DeviceLoginScreenPowerSettings"
binjin
2014/04/09 11:00:36
Done.
|
'properties': { |
'Delays': { |
'type': 'object', |
@@ -5483,34 +5451,7 @@ |
}, |
'Battery': { |
'description': 'Power management settings applicable only when running on battery power', |
- 'type': 'object', |
- 'properties': { |
- 'Delays': { |
- 'type': 'object', |
- 'properties': { |
- 'ScreenDim': { |
- 'description': 'The length of time without user input after which the screen is dimmed, in milliseconds', |
- 'type': 'integer', |
- 'minimum': 0 |
- }, |
- 'ScreenOff': { |
- 'description': 'The length of time without user input after which the screen is turned off, in milliseconds', |
- 'type': 'integer', |
- 'minimum': 0 |
- }, |
- 'Idle': { |
- 'description': 'The length of time without user input after which the idle action is taken, in milliseconds', |
- 'type': 'integer', |
- 'minimum': 0 |
- } |
- } |
- }, |
- 'IdleAction': { |
- 'description': 'Action to take when the idle delay is reached', |
- 'type': 'string', |
- 'enum': [ 'Suspend', 'Shutdown', 'DoNothing' ] |
- } |
- } |
+ '$ref': 'ref_device_login_screen_power_settings' |
}, |
'LidCloseAction': { |
'description': 'Action to take when the lid is closed', |