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

Unified Diff: components/policy/resources/policy_templates.json

Issue 138003003: Add additional restriction to policy schema internal (part1) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more fixes Created 6 years, 11 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
« no previous file with comments | « components/policy/core/common/schema_unittest.cc ('k') | components/policy/tools/generate_policy_source.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/policy/resources/policy_templates.json
diff --git a/components/policy/resources/policy_templates.json b/components/policy/resources/policy_templates.json
index bfca20328ca0d9c7200639e0b9ef215b74154e0f..e55109061733d25ebb85446522d55f54ee92b0b4 100644
--- a/components/policy/resources/policy_templates.json
+++ b/components/policy/resources/policy_templates.json
@@ -4448,7 +4448,10 @@
{
'name': 'ScreenDimDelayAC',
'type': 'int',
- 'schema': { 'type': 'integer' },
+ 'schema': {
+ 'type': 'integer',
+ 'minimum': 0
+ },
'supported_on': ['chrome_os:26-'],
'features': {
'dynamic_refresh': True,
@@ -4470,7 +4473,10 @@
{
'name': 'ScreenOffDelayAC',
'type': 'int',
- 'schema': { 'type': 'integer' },
+ 'schema': {
+ 'type': 'integer',
+ 'minimum': 0
+ },
'supported_on': ['chrome_os:26-'],
'features': {
'dynamic_refresh': True,
@@ -4492,7 +4498,10 @@
{
'name': 'ScreenLockDelayAC',
'type': 'int',
- 'schema': { 'type': 'integer' },
+ 'schema': {
+ 'type': 'integer',
+ 'minimum': 0
+ },
'supported_on': ['chrome_os:26-'],
'features': {
'dynamic_refresh': True,
@@ -4516,7 +4525,10 @@
{
'name': 'IdleWarningDelayAC',
'type': 'int',
- 'schema': { 'type': 'integer' },
+ 'schema': {
+ 'type': 'integer',
+ 'minimum': 0
+ },
'supported_on': ['chrome_os:27-'],
'features': {
'dynamic_refresh': True,
@@ -4536,7 +4548,10 @@
{
'name': 'IdleDelayAC',
'type': 'int',
- 'schema': { 'type': 'integer' },
+ 'schema': {
+ 'type': 'integer',
+ 'minimum': 0
+ },
'supported_on': ['chrome_os:26-'],
'features': {
'dynamic_refresh': True,
@@ -4556,7 +4571,10 @@
{
'name': 'ScreenDimDelayBattery',
'type': 'int',
- 'schema': { 'type': 'integer' },
+ 'schema': {
+ 'type': 'integer',
+ 'minimum': 0
+ },
'supported_on': ['chrome_os:26-'],
'features': {
'dynamic_refresh': True,
@@ -4578,7 +4596,10 @@
{
'name': 'ScreenOffDelayBattery',
'type': 'int',
- 'schema': { 'type': 'integer' },
+ 'schema': {
+ 'type': 'integer',
+ 'minimum': 0
+ },
'supported_on': ['chrome_os:26-'],
'features': {
'dynamic_refresh': True,
@@ -4600,7 +4621,10 @@
{
'name': 'ScreenLockDelayBattery',
'type': 'int',
- 'schema': { 'type': 'integer' },
+ 'schema': {
+ 'type': 'integer',
+ 'minimum': 0
+ },
'supported_on': ['chrome_os:26-'],
'features': {
'dynamic_refresh': True,
@@ -4624,7 +4648,10 @@
{
'name': 'IdleWarningDelayBattery',
'type': 'int',
- 'schema': { 'type': 'integer' },
+ 'schema': {
+ 'type': 'integer',
+ 'minimum': 0
+ },
'supported_on': ['chrome_os:27-'],
'features': {
'dynamic_refresh': True,
@@ -4644,7 +4671,10 @@
{
'name': 'IdleDelayBattery',
'type': 'int',
- 'schema': { 'type': 'integer' },
+ 'schema': {
+ 'type': 'integer',
+ 'minimum': 0
+ },
'supported_on': ['chrome_os:26-'],
'features': {
'dynamic_refresh': True,
« no previous file with comments | « components/policy/core/common/schema_unittest.cc ('k') | components/policy/tools/generate_policy_source.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698