Added schemas to policy templates.

BUG=108997


Review URL: https://chromiumcodereview.appspot.com/10826061

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@149178 0039d316-1c4b-4281-b951-d872f2087c98
parent dffb0ada
...@@ -139,6 +139,7 @@ ...@@ -139,6 +139,7 @@
{ {
'name': 'HomepageLocation', 'name': 'HomepageLocation',
'type': 'string', 'type': 'string',
'schema': { 'type': 'string' },
'supported_on': ['chrome.*:8-', 'chrome_os:0.11-'], 'supported_on': ['chrome.*:8-', 'chrome_os:0.11-'],
'features': { 'features': {
'dynamic_refresh': True, 'dynamic_refresh': True,
...@@ -161,6 +162,7 @@ ...@@ -161,6 +162,7 @@
{ {
'name': 'HomepageIsNewTabPage', 'name': 'HomepageIsNewTabPage',
'type': 'main', 'type': 'main',
'schema': { 'type': 'boolean' },
'supported_on': ['chrome.*:8-', 'chrome_os:0.11-'], 'supported_on': ['chrome.*:8-', 'chrome_os:0.11-'],
'features': { 'features': {
'dynamic_refresh': True, 'dynamic_refresh': True,
...@@ -184,6 +186,7 @@ ...@@ -184,6 +186,7 @@
{ {
'name': 'DefaultBrowserSettingEnabled', 'name': 'DefaultBrowserSettingEnabled',
'type': 'main', 'type': 'main',
'schema': { 'type': 'boolean' },
'supported_on': ['chrome.*:11-'], 'supported_on': ['chrome.*:11-'],
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
'example_value': True, 'example_value': True,
...@@ -201,6 +204,7 @@ ...@@ -201,6 +204,7 @@
{ {
'name': 'ApplicationLocaleValue', 'name': 'ApplicationLocaleValue',
'type': 'string', 'type': 'string',
'schema': { 'type': 'string' },
'supported_on': ['chrome.win:8-'], 'supported_on': ['chrome.win:8-'],
'features': { 'features': {
'dynamic_refresh': False, 'dynamic_refresh': False,
...@@ -219,6 +223,7 @@ ...@@ -219,6 +223,7 @@
{ {
'name': 'AlternateErrorPagesEnabled', 'name': 'AlternateErrorPagesEnabled',
'type': 'main', 'type': 'main',
'schema': { 'type': 'boolean' },
'supported_on': ['chrome.*:8-', 'chrome_os:0.11-'], 'supported_on': ['chrome.*:8-', 'chrome_os:0.11-'],
'features': { 'features': {
'dynamic_refresh': True, 'dynamic_refresh': True,
...@@ -240,6 +245,7 @@ ...@@ -240,6 +245,7 @@
{ {
'name': 'SearchSuggestEnabled', 'name': 'SearchSuggestEnabled',
'type': 'main', 'type': 'main',
'schema': { 'type': 'boolean' },
'supported_on': ['chrome.*:8-', 'chrome_os:0.11-'], 'supported_on': ['chrome.*:8-', 'chrome_os:0.11-'],
'features': { 'features': {
'dynamic_refresh': True, 'dynamic_refresh': True,
...@@ -261,6 +267,7 @@ ...@@ -261,6 +267,7 @@
{ {
'name': 'DnsPrefetchingEnabled', 'name': 'DnsPrefetchingEnabled',
'type': 'main', 'type': 'main',
'schema': { 'type': 'boolean' },
'supported_on': ['chrome.*:8-', 'chrome_os:0.11-'], 'supported_on': ['chrome.*:8-', 'chrome_os:0.11-'],
'features': { 'features': {
'dynamic_refresh': True, 'dynamic_refresh': True,
...@@ -278,6 +285,7 @@ ...@@ -278,6 +285,7 @@
{ {
'name': 'DisableSpdy', 'name': 'DisableSpdy',
'type': 'main', 'type': 'main',
'schema': { 'type': 'boolean' },
'supported_on': ['chrome.*:8-', 'chrome_os:0.11-'], 'supported_on': ['chrome.*:8-', 'chrome_os:0.11-'],
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
'example_value': True, 'example_value': True,
...@@ -294,6 +302,10 @@ ...@@ -294,6 +302,10 @@
{ {
'name': 'DisabledSchemes', 'name': 'DisabledSchemes',
'type': 'list', 'type': 'list',
'schema': {
'type': 'array',
'items': { 'type': 'string' },
},
'supported_on': ['chrome.*:12-', 'chrome_os:0.12-'], 'supported_on': ['chrome.*:12-', 'chrome_os:0.12-'],
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
'example_value': ['file', 'mailto'], 'example_value': ['file', 'mailto'],
...@@ -309,6 +321,7 @@ ...@@ -309,6 +321,7 @@
{ {
'name': 'JavascriptEnabled', 'name': 'JavascriptEnabled',
'type': 'main', 'type': 'main',
'schema': { 'type': 'boolean' },
'supported_on': ['chrome.*:8-', 'chrome_os:0.11-'], 'supported_on': ['chrome.*:8-', 'chrome_os:0.11-'],
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
'deprecated': True, 'deprecated': True,
...@@ -330,6 +343,7 @@ ...@@ -330,6 +343,7 @@
{ {
'name': 'IncognitoEnabled', 'name': 'IncognitoEnabled',
'type': 'main', 'type': 'main',
'schema': { 'type': 'boolean' },
'supported_on': ['chrome.*:11-', 'chrome_os:0.11-'], 'supported_on': ['chrome.*:11-', 'chrome_os:0.11-'],
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
'deprecated': True, 'deprecated': True,
...@@ -348,6 +362,10 @@ ...@@ -348,6 +362,10 @@
{ {
'name': 'IncognitoModeAvailability', 'name': 'IncognitoModeAvailability',
'type': 'int-enum', 'type': 'int-enum',
'schema': {
'type': 'integer',
'enum': [ 0, 1, 2 ],
},
'items': [ 'items': [
{ {
'name': 'Enabled', 'name': 'Enabled',
...@@ -381,6 +399,7 @@ ...@@ -381,6 +399,7 @@
{ {
'name': 'SavingBrowserHistoryDisabled', 'name': 'SavingBrowserHistoryDisabled',
'type': 'main', 'type': 'main',
'schema': { 'type': 'boolean' },
'supported_on': ['chrome.*:8-', 'chrome_os:0.11-'], 'supported_on': ['chrome.*:8-', 'chrome_os:0.11-'],
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
'example_value': True, 'example_value': True,
...@@ -403,6 +422,7 @@ ...@@ -403,6 +422,7 @@
{ {
'name': 'RemoteAccessClientFirewallTraversal', 'name': 'RemoteAccessClientFirewallTraversal',
'type': 'main', 'type': 'main',
'schema': { 'type': 'boolean' },
'supported_on': ['chrome.*:14-', 'chrome_os:0.14-'], 'supported_on': ['chrome.*:14-', 'chrome_os:0.14-'],
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
# Mark this 'removed' when http://crbug.com/100216 is resolved. # Mark this 'removed' when http://crbug.com/100216 is resolved.
...@@ -420,6 +440,7 @@ ...@@ -420,6 +440,7 @@
{ {
'name': 'RemoteAccessHostFirewallTraversal', 'name': 'RemoteAccessHostFirewallTraversal',
'type': 'main', 'type': 'main',
'schema': { 'type': 'boolean' },
'supported_on': ['chrome.*:14-', 'chrome_os:0.14-'], 'supported_on': ['chrome.*:14-', 'chrome_os:0.14-'],
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
'example_value': False, 'example_value': False,
...@@ -438,6 +459,7 @@ ...@@ -438,6 +459,7 @@
{ {
'name': 'PrintingEnabled', 'name': 'PrintingEnabled',
'type': 'main', 'type': 'main',
'schema': { 'type': 'boolean' },
'supported_on': ['chrome.*:8-', 'chrome_os:0.11-'], 'supported_on': ['chrome.*:8-', 'chrome_os:0.11-'],
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
'example_value': True, 'example_value': True,
...@@ -454,6 +476,7 @@ ...@@ -454,6 +476,7 @@
{ {
'name': 'CloudPrintProxyEnabled', 'name': 'CloudPrintProxyEnabled',
'type': 'main', 'type': 'main',
'schema': { 'type': 'boolean' },
'supported_on': ['chrome.*:17-'], 'supported_on': ['chrome.*:17-'],
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
'example_value': True, 'example_value': True,
...@@ -470,6 +493,7 @@ ...@@ -470,6 +493,7 @@
{ {
'name': 'SafeBrowsingEnabled', 'name': 'SafeBrowsingEnabled',
'type': 'main', 'type': 'main',
'schema': { 'type': 'boolean' },
'supported_on': ['chrome.*:8-', 'chrome_os:0.11-'], 'supported_on': ['chrome.*:8-', 'chrome_os:0.11-'],
'features': { 'features': {
'dynamic_refresh': False, 'dynamic_refresh': False,
...@@ -491,6 +515,7 @@ ...@@ -491,6 +515,7 @@
{ {
'name': 'MetricsReportingEnabled', 'name': 'MetricsReportingEnabled',
'type': 'main', 'type': 'main',
'schema': { 'type': 'boolean' },
'supported_on': ['chrome.*:8-'], 'supported_on': ['chrome.*:8-'],
'features': { 'features': {
'dynamic_refresh': False, 'dynamic_refresh': False,
...@@ -518,6 +543,7 @@ ...@@ -518,6 +543,7 @@
{ {
'name': 'PasswordManagerEnabled', 'name': 'PasswordManagerEnabled',
'type': 'main', 'type': 'main',
'schema': { 'type': 'boolean' },
'supported_on': ['chrome.*:8-', 'chrome_os:0.11-'], 'supported_on': ['chrome.*:8-', 'chrome_os:0.11-'],
'features': { 'features': {
'dynamic_refresh': True, 'dynamic_refresh': True,
...@@ -539,6 +565,7 @@ ...@@ -539,6 +565,7 @@
{ {
'name': 'PasswordManagerAllowShowPasswords', 'name': 'PasswordManagerAllowShowPasswords',
'type': 'main', 'type': 'main',
'schema': { 'type': 'boolean' },
'supported_on': ['chrome.*:8-', 'chrome_os:0.11-'], 'supported_on': ['chrome.*:8-', 'chrome_os:0.11-'],
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
'example_value': False, 'example_value': False,
...@@ -555,6 +582,7 @@ ...@@ -555,6 +582,7 @@
{ {
'name': 'AutoFillEnabled', 'name': 'AutoFillEnabled',
'type': 'main', 'type': 'main',
'schema': { 'type': 'boolean' },
'supported_on': ['chrome.*:8-', 'chrome_os:0.11-'], 'supported_on': ['chrome.*:8-', 'chrome_os:0.11-'],
'features': { 'features': {
'dynamic_refresh': True, 'dynamic_refresh': True,
...@@ -572,6 +600,10 @@ ...@@ -572,6 +600,10 @@
{ {
'name': 'DisabledPlugins', 'name': 'DisabledPlugins',
'type': 'list', 'type': 'list',
'schema': {
'type': 'array',
'items': { 'type': 'string' },
},
'supported_on': ['chrome.*:8-', 'chrome_os:0.11-'], 'supported_on': ['chrome.*:8-', 'chrome_os:0.11-'],
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
'example_value': ['Java', 'Shockwave Flash', 'Chrome PDF Viewer'], 'example_value': ['Java', 'Shockwave Flash', 'Chrome PDF Viewer'],
...@@ -591,6 +623,10 @@ ...@@ -591,6 +623,10 @@
{ {
'name': 'EnabledPlugins', 'name': 'EnabledPlugins',
'type': 'list', 'type': 'list',
'schema': {
'type': 'array',
'items': { 'type': 'string' },
},
'supported_on': ['chrome.*:11-', 'chrome_os:0.11-'], 'supported_on': ['chrome.*:11-', 'chrome_os:0.11-'],
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
'example_value': ['Java', 'Shockwave Flash', 'Chrome PDF Viewer'], 'example_value': ['Java', 'Shockwave Flash', 'Chrome PDF Viewer'],
...@@ -610,6 +646,10 @@ ...@@ -610,6 +646,10 @@
{ {
'name': 'DisabledPluginsExceptions', 'name': 'DisabledPluginsExceptions',
'type': 'list', 'type': 'list',
'schema': {
'type': 'array',
'items': { 'type': 'string' },
},
'supported_on': ['chrome.*:11-', 'chrome_os:0.11-'], 'supported_on': ['chrome.*:11-', 'chrome_os:0.11-'],
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
'example_value': ['Java', 'Shockwave Flash', 'Chrome PDF Viewer'], 'example_value': ['Java', 'Shockwave Flash', 'Chrome PDF Viewer'],
...@@ -629,6 +669,7 @@ ...@@ -629,6 +669,7 @@
{ {
'name': 'DisablePluginFinder', 'name': 'DisablePluginFinder',
'type': 'main', 'type': 'main',
'schema': { 'type': 'boolean' },
'supported_on': ['chrome.*:11-', 'chrome_os:0.11-'], 'supported_on': ['chrome.*:11-', 'chrome_os:0.11-'],
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
'example_value': True, 'example_value': True,
...@@ -642,6 +683,7 @@ ...@@ -642,6 +683,7 @@
{ {
'name': 'SyncDisabled', 'name': 'SyncDisabled',
'type': 'main', 'type': 'main',
'schema': { 'type': 'boolean' },
'supported_on': ['chrome.*:8-', 'chrome_os:0.11-'], 'supported_on': ['chrome.*:8-', 'chrome_os:0.11-'],
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
'example_value': True, 'example_value': True,
...@@ -656,6 +698,7 @@ ...@@ -656,6 +698,7 @@
{ {
'name': 'UserDataDir', 'name': 'UserDataDir',
'type': 'string', 'type': 'string',
'schema': { 'type': 'string' },
'supported_on': ['chrome.win:11-', 'chrome.mac:11-'], 'supported_on': ['chrome.win:11-', 'chrome.mac:11-'],
'features': {'dynamic_refresh': False}, 'features': {'dynamic_refresh': False},
'example_value': '${users}/${user_name}/Chrome', 'example_value': '${users}/${user_name}/Chrome',
...@@ -671,6 +714,7 @@ ...@@ -671,6 +714,7 @@
{ {
'name': 'DiskCacheDir', 'name': 'DiskCacheDir',
'type': 'string', 'type': 'string',
'schema': { 'type': 'string' },
'supported_on': ['chrome.*:13-'], 'supported_on': ['chrome.*:13-'],
'features': {'dynamic_refresh': False}, 'features': {'dynamic_refresh': False},
'example_value': '${user_home}/Chrome_cache', 'example_value': '${user_home}/Chrome_cache',
...@@ -686,6 +730,7 @@ ...@@ -686,6 +730,7 @@
{ {
'name': 'DiskCacheSize', 'name': 'DiskCacheSize',
'type': 'int', 'type': 'int',
'schema': { 'type': 'integer' },
'supported_on': ['chrome.*:17-'], 'supported_on': ['chrome.*:17-'],
'features': {'dynamic_refresh': False}, 'features': {'dynamic_refresh': False},
'example_value': 104857600, 'example_value': 104857600,
...@@ -703,6 +748,7 @@ ...@@ -703,6 +748,7 @@
{ {
'name': 'MediaCacheSize', 'name': 'MediaCacheSize',
'type': 'int', 'type': 'int',
'schema': { 'type': 'integer' },
'supported_on': ['chrome.*:17-'], 'supported_on': ['chrome.*:17-'],
'features': {'dynamic_refresh': False}, 'features': {'dynamic_refresh': False},
'example_value': 104857600, 'example_value': 104857600,
...@@ -720,6 +766,7 @@ ...@@ -720,6 +766,7 @@
{ {
'name': 'DownloadDirectory', 'name': 'DownloadDirectory',
'type': 'string', 'type': 'string',
'schema': { 'type': 'string' },
'supported_on': ['chrome.*:11-'], 'supported_on': ['chrome.*:11-'],
'features': { 'features': {
'dynamic_refresh': True, 'dynamic_refresh': True,
...@@ -738,6 +785,7 @@ ...@@ -738,6 +785,7 @@
{ {
'name': 'ClearSiteDataOnExit', 'name': 'ClearSiteDataOnExit',
'type': 'main', 'type': 'main',
'schema': { 'type': 'boolean' },
'supported_on': ['chrome.*:11-', 'chrome_os:0.11-'], 'supported_on': ['chrome.*:11-', 'chrome_os:0.11-'],
'features': { 'features': {
'dynamic_refresh': True, 'dynamic_refresh': True,
...@@ -776,6 +824,16 @@ ...@@ -776,6 +824,16 @@
{ {
'name': 'ProxyMode', 'name': 'ProxyMode',
'type': 'string-enum', 'type': 'string-enum',
'schema': {
'type': 'string',
'enum': [
'direct',
'auto_detect',
'pac_script',
'fixed_servers',
'system'
],
},
'items': [ 'items': [
{ {
'name': 'ProxyDisabled', 'name': 'ProxyDisabled',
...@@ -828,6 +886,10 @@ ...@@ -828,6 +886,10 @@
{ {
'name': 'ProxyServerMode', 'name': 'ProxyServerMode',
'type': 'int-enum', 'type': 'int-enum',
'schema': {
'type': 'integer',
'enum': [ 0, 1, 2, 3 ],
},
'items': [ 'items': [
{ {
'name': 'ProxyServerDisabled', 'name': 'ProxyServerDisabled',
...@@ -876,6 +938,7 @@ ...@@ -876,6 +938,7 @@
{ {
'name': 'ProxyServer', 'name': 'ProxyServer',
'type': 'string', 'type': 'string',
'schema': { 'type': 'string' },
'supported_on': ['chrome.*:8-', 'chrome_os:0.11-'], 'supported_on': ['chrome.*:8-', 'chrome_os:0.11-'],
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
'example_value': '123.123.123.123:8080', 'example_value': '123.123.123.123:8080',
...@@ -893,6 +956,7 @@ ...@@ -893,6 +956,7 @@
{ {
'name': 'ProxyPacUrl', 'name': 'ProxyPacUrl',
'type': 'string', 'type': 'string',
'schema': { 'type': 'string' },
'supported_on': ['chrome.*:8-', 'chrome_os:0.11-'], 'supported_on': ['chrome.*:8-', 'chrome_os:0.11-'],
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
'example_value': 'http://internal.site/example.pac', 'example_value': 'http://internal.site/example.pac',
...@@ -910,6 +974,7 @@ ...@@ -910,6 +974,7 @@
{ {
'name': 'ProxyBypassList', 'name': 'ProxyBypassList',
'type': 'string', 'type': 'string',
'schema': { 'type': 'string' },
'supported_on': ['chrome.*:8-', 'chrome_os:0.11-'], 'supported_on': ['chrome.*:8-', 'chrome_os:0.11-'],
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
'example_value': 'http://www.example1.com,http://www.example2.com,http://internalsite/', 'example_value': 'http://www.example1.com,http://www.example2.com,http://internalsite/',
...@@ -934,6 +999,16 @@ ...@@ -934,6 +999,16 @@
# http://crbug.com/108992, http://crbug.com/108996 # http://crbug.com/108992, http://crbug.com/108996
'name': 'ProxySettings', 'name': 'ProxySettings',
'type': 'dict', 'type': 'dict',
'schema': {
'type': 'object',
'properties': {
'ProxyMode': { 'type': 'string' },
'ProxyPacUrl': { 'type': 'string' },
'ProxyServer': { 'type': 'string' },
'ProxyBypassList': { 'type': 'string' },
'ProxyServerMode': { 'type': 'string' },
},
},
'supported_on': ['chrome.*:18-', 'chrome_os:0.18-'], 'supported_on': ['chrome.*:18-', 'chrome_os:0.18-'],
'future': True, 'future': True,
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
...@@ -953,6 +1028,7 @@ ...@@ -953,6 +1028,7 @@
{ {
'name': 'AuthSchemes', 'name': 'AuthSchemes',
'type': 'string', 'type': 'string',
'schema': { 'type': 'string' },
'supported_on': ['chrome.*:9-', 'chrome_os:0.11-'], 'supported_on': ['chrome.*:9-', 'chrome_os:0.11-'],
'features': {'dynamic_refresh': False}, 'features': {'dynamic_refresh': False},
'example_value': 'basic,digest,ntlm,negotiate', 'example_value': 'basic,digest,ntlm,negotiate',
...@@ -967,6 +1043,7 @@ ...@@ -967,6 +1043,7 @@
{ {
'name': 'DisableAuthNegotiateCnameLookup', 'name': 'DisableAuthNegotiateCnameLookup',
'type': 'main', 'type': 'main',
'schema': { 'type': 'boolean' },
'supported_on': ['chrome.*:9-', 'chrome_os:0.11-'], 'supported_on': ['chrome.*:9-', 'chrome_os:0.11-'],
'features': {'dynamic_refresh': False}, 'features': {'dynamic_refresh': False},
'example_value': False, 'example_value': False,
...@@ -981,6 +1058,7 @@ ...@@ -981,6 +1058,7 @@
{ {
'name': 'EnableAuthNegotiatePort', 'name': 'EnableAuthNegotiatePort',
'type': 'main', 'type': 'main',
'schema': { 'type': 'boolean' },
'supported_on': ['chrome.*:9-', 'chrome_os:0.11-'], 'supported_on': ['chrome.*:9-', 'chrome_os:0.11-'],
'features': {'dynamic_refresh': False}, 'features': {'dynamic_refresh': False},
'example_value': False, 'example_value': False,
...@@ -995,6 +1073,7 @@ ...@@ -995,6 +1073,7 @@
{ {
'name': 'AuthServerWhitelist', 'name': 'AuthServerWhitelist',
'type': 'string', 'type': 'string',
'schema': { 'type': 'string' },
'supported_on': ['chrome.*:9-', 'chrome_os:0.11-'], 'supported_on': ['chrome.*:9-', 'chrome_os:0.11-'],
'features': {'dynamic_refresh': False}, 'features': {'dynamic_refresh': False},
'example_value': '*example.com,foobar.com,*baz', 'example_value': '*example.com,foobar.com,*baz',
...@@ -1009,6 +1088,7 @@ ...@@ -1009,6 +1088,7 @@
{ {
'name': 'AuthNegotiateDelegateWhitelist', 'name': 'AuthNegotiateDelegateWhitelist',
'type': 'string', 'type': 'string',
'schema': { 'type': 'string' },
'supported_on': ['chrome.*:9-', 'chrome_os:0.11-'], 'supported_on': ['chrome.*:9-', 'chrome_os:0.11-'],
'features': {'dynamic_refresh': False}, 'features': {'dynamic_refresh': False},
'example_value': 'foobar.example.com', 'example_value': 'foobar.example.com',
...@@ -1023,6 +1103,7 @@ ...@@ -1023,6 +1103,7 @@
{ {
'name': 'GSSAPILibraryName', 'name': 'GSSAPILibraryName',
'type': 'string', 'type': 'string',
'schema': { 'type': 'string' },
'supported_on': ['chrome.linux:9-', 'chrome.mac:9-'], 'supported_on': ['chrome.linux:9-', 'chrome.mac:9-'],
'features': {'dynamic_refresh': False}, 'features': {'dynamic_refresh': False},
'example_value': 'libgssapi_krb5.so.2', 'example_value': 'libgssapi_krb5.so.2',
...@@ -1035,6 +1116,7 @@ ...@@ -1035,6 +1116,7 @@
{ {
'name': 'AllowCrossOriginAuthPrompt', 'name': 'AllowCrossOriginAuthPrompt',
'type': 'main', 'type': 'main',
'schema': { 'type': 'boolean' },
'supported_on': ['chrome.*:13-'], 'supported_on': ['chrome.*:13-'],
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
'example_value': False, 'example_value': False,
...@@ -1055,6 +1137,10 @@ ...@@ -1055,6 +1137,10 @@
{ {
'name': 'ExtensionInstallBlacklist', 'name': 'ExtensionInstallBlacklist',
'type': 'list', 'type': 'list',
'schema': {
'type': 'array',
'items': { 'type': 'string' },
},
'supported_on': ['chrome.*:8-', 'chrome_os:0.11-'], 'supported_on': ['chrome.*:8-', 'chrome_os:0.11-'],
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
'example_value': ['extension_id1', 'extension_id2'], 'example_value': ['extension_id1', 'extension_id2'],
...@@ -1070,6 +1156,10 @@ ...@@ -1070,6 +1156,10 @@
{ {
'name': 'ExtensionInstallWhitelist', 'name': 'ExtensionInstallWhitelist',
'type': 'list', 'type': 'list',
'schema': {
'type': 'array',
'items': { 'type': 'string' },
},
'supported_on': ['chrome.*:8-', 'chrome_os:0.11-'], 'supported_on': ['chrome.*:8-', 'chrome_os:0.11-'],
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
'example_value': ['extension_id1', 'extension_id2'], 'example_value': ['extension_id1', 'extension_id2'],
...@@ -1085,6 +1175,10 @@ ...@@ -1085,6 +1175,10 @@
{ {
'name': 'ExtensionInstallForcelist', 'name': 'ExtensionInstallForcelist',
'type': 'list', 'type': 'list',
'schema': {
'type': 'array',
'items': { 'type': 'string' },
},
'supported_on': ['chrome.*:9-', 'chrome_os:0.11-'], 'supported_on': ['chrome.*:9-', 'chrome_os:0.11-'],
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
'example_value': ['lcncmkcnkcdbbanbjakcencbaoegdjlp;https://clients2.google.com/service/update2/crx'], 'example_value': ['lcncmkcnkcdbbanbjakcencbaoegdjlp;https://clients2.google.com/service/update2/crx'],
...@@ -1106,6 +1200,10 @@ ...@@ -1106,6 +1200,10 @@
{ {
'name': 'ExtensionInstallSources', 'name': 'ExtensionInstallSources',
'type': 'list', 'type': 'list',
'schema': {
'type': 'array',
'items': { 'type': 'string' },
},
'supported_on': ['chrome.*:21-', 'chrome_os:21-'], 'supported_on': ['chrome.*:21-', 'chrome_os:21-'],
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
'example_value': ['https://corp.mycompany.com/*'], 'example_value': ['https://corp.mycompany.com/*'],
...@@ -1125,6 +1223,7 @@ ...@@ -1125,6 +1223,7 @@
{ {
'name': 'ShowHomeButton', 'name': 'ShowHomeButton',
'type': 'main', 'type': 'main',
'schema': { 'type': 'boolean' },
'supported_on': ['chrome.*:8-', 'chrome_os:0.11-'], 'supported_on': ['chrome.*:8-', 'chrome_os:0.11-'],
'features': { 'features': {
'dynamic_refresh': True, 'dynamic_refresh': True,
...@@ -1146,6 +1245,7 @@ ...@@ -1146,6 +1245,7 @@
{ {
'name': 'DeveloperToolsDisabled', 'name': 'DeveloperToolsDisabled',
'type': 'main', 'type': 'main',
'schema': { 'type': 'boolean' },
'supported_on': ['chrome.*:9-', 'chrome_os:0.11-'], 'supported_on': ['chrome.*:9-', 'chrome_os:0.11-'],
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
'example_value': False, 'example_value': False,
...@@ -1168,6 +1268,10 @@ ...@@ -1168,6 +1268,10 @@
{ {
'name': 'RestoreOnStartup', 'name': 'RestoreOnStartup',
'type': 'int-enum', 'type': 'int-enum',
'schema': {
'type': 'integer',
'enum': [ 1, 4, 5 ],
},
'items': [ 'items': [
{ {
'name': 'RestoreOnStartupIsNewTabPage', 'name': 'RestoreOnStartupIsNewTabPage',
...@@ -1211,6 +1315,10 @@ ...@@ -1211,6 +1315,10 @@
# after fixing http://crbug.com/106684 # after fixing http://crbug.com/106684
'name': 'RestoreOnStartupURLs', 'name': 'RestoreOnStartupURLs',
'type': 'list', 'type': 'list',
'schema': {
'type': 'array',
'items': { 'type': 'string' },
},
'supported_on': ['chrome.*:8-', 'chrome_os:0.11-'], 'supported_on': ['chrome.*:8-', 'chrome_os:0.11-'],
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
'example_value': ['http://example.com', 'http://chromium.org'], 'example_value': ['http://example.com', 'http://chromium.org'],
...@@ -1225,6 +1333,7 @@ ...@@ -1225,6 +1333,7 @@
{ {
'name': 'BlockThirdPartyCookies', 'name': 'BlockThirdPartyCookies',
'type': 'main', 'type': 'main',
'schema': { 'type': 'boolean' },
'supported_on': ['chrome.*:10-', 'chrome_os:0.11-'], 'supported_on': ['chrome.*:10-', 'chrome_os:0.11-'],
'features': { 'features': {
'dynamic_refresh': True, 'dynamic_refresh': True,
...@@ -1252,6 +1361,7 @@ ...@@ -1252,6 +1361,7 @@
{ {
'name': 'DefaultSearchProviderEnabled', 'name': 'DefaultSearchProviderEnabled',
'type': 'main', 'type': 'main',
'schema': { 'type': 'boolean' },
'supported_on': ['chrome.*:8-', 'chrome_os:0.11-'], 'supported_on': ['chrome.*:8-', 'chrome_os:0.11-'],
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
'example_value': True, 'example_value': True,
...@@ -1272,6 +1382,7 @@ ...@@ -1272,6 +1382,7 @@
{ {
'name': 'DefaultSearchProviderName', 'name': 'DefaultSearchProviderName',
'type': 'string', 'type': 'string',
'schema': { 'type': 'string' },
'supported_on': ['chrome.*:8-', 'chrome_os:0.11-'], 'supported_on': ['chrome.*:8-', 'chrome_os:0.11-'],
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
'example_value': 'My Intranet Search', 'example_value': 'My Intranet Search',
...@@ -1284,6 +1395,7 @@ ...@@ -1284,6 +1395,7 @@
{ {
'name': 'DefaultSearchProviderKeyword', 'name': 'DefaultSearchProviderKeyword',
'type': 'string', 'type': 'string',
'schema': { 'type': 'string' },
'supported_on': ['chrome.*:8-', 'chrome_os:0.11-'], 'supported_on': ['chrome.*:8-', 'chrome_os:0.11-'],
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
'example_value': 'mis', 'example_value': 'mis',
...@@ -1298,6 +1410,7 @@ ...@@ -1298,6 +1410,7 @@
{ {
'name': 'DefaultSearchProviderSearchURL', 'name': 'DefaultSearchProviderSearchURL',
'type': 'string', 'type': 'string',
'schema': { 'type': 'string' },
'supported_on': ['chrome.*:8-', 'chrome_os:0.11-'], 'supported_on': ['chrome.*:8-', 'chrome_os:0.11-'],
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
'example_value': 'http://search.my.company/search?q={searchTerms}', 'example_value': 'http://search.my.company/search?q={searchTerms}',
...@@ -1310,6 +1423,7 @@ ...@@ -1310,6 +1423,7 @@
{ {
'name': 'DefaultSearchProviderSuggestURL', 'name': 'DefaultSearchProviderSuggestURL',
'type': 'string', 'type': 'string',
'schema': { 'type': 'string' },
'supported_on': ['chrome.*:8-', 'chrome_os:0.11-'], 'supported_on': ['chrome.*:8-', 'chrome_os:0.11-'],
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
'example_value': 'http://search.my.company/suggest?q={searchTerms}', 'example_value': 'http://search.my.company/suggest?q={searchTerms}',
...@@ -1324,6 +1438,7 @@ ...@@ -1324,6 +1438,7 @@
{ {
'name': 'DefaultSearchProviderInstantURL', 'name': 'DefaultSearchProviderInstantURL',
'type': 'string', 'type': 'string',
'schema': { 'type': 'string' },
'supported_on': ['chrome.*:10-', 'chrome_os:0.11-'], 'supported_on': ['chrome.*:10-', 'chrome_os:0.11-'],
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
'example_value': 'http://search.my.company/suggest?q={searchTerms}', 'example_value': 'http://search.my.company/suggest?q={searchTerms}',
...@@ -1338,6 +1453,7 @@ ...@@ -1338,6 +1453,7 @@
{ {
'name': 'DefaultSearchProviderIconURL', 'name': 'DefaultSearchProviderIconURL',
'type': 'string', 'type': 'string',
'schema': { 'type': 'string' },
'supported_on': ['chrome.*:8-', 'chrome_os:0.11-'], 'supported_on': ['chrome.*:8-', 'chrome_os:0.11-'],
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
'example_value': 'http://search.my.company/favicon.ico', 'example_value': 'http://search.my.company/favicon.ico',
...@@ -1352,6 +1468,10 @@ ...@@ -1352,6 +1468,10 @@
{ {
'name': 'DefaultSearchProviderEncodings', 'name': 'DefaultSearchProviderEncodings',
'type': 'list', 'type': 'list',
'schema': {
'type': 'array',
'items': { 'type': 'string' },
},
'supported_on': ['chrome.*:8-', 'chrome_os:0.11-'], 'supported_on': ['chrome.*:8-', 'chrome_os:0.11-'],
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
'example_value': ['UTF-8', 'UTF-16', 'GB2312', 'ISO-8859-1'], 'example_value': ['UTF-8', 'UTF-16', 'GB2312', 'ISO-8859-1'],
...@@ -1376,6 +1496,10 @@ ...@@ -1376,6 +1496,10 @@
{ {
'name': 'DefaultCookiesSetting', 'name': 'DefaultCookiesSetting',
'type': 'int-enum', 'type': 'int-enum',
'schema': {
'type': 'integer',
'enum': [ 1, 2, 4 ],
},
'items': [ 'items': [
{ {
'name': 'AllowCookies', 'name': 'AllowCookies',
...@@ -1405,6 +1529,10 @@ ...@@ -1405,6 +1529,10 @@
{ {
'name': 'DefaultImagesSetting', 'name': 'DefaultImagesSetting',
'type': 'int-enum', 'type': 'int-enum',
'schema': {
'type': 'integer',
'enum': [ 1, 2 ],
},
'items': [ 'items': [
{ {
'name': 'AllowImages', 'name': 'AllowImages',
...@@ -1429,6 +1557,10 @@ ...@@ -1429,6 +1557,10 @@
{ {
'name': 'DefaultJavaScriptSetting', 'name': 'DefaultJavaScriptSetting',
'type': 'int-enum', 'type': 'int-enum',
'schema': {
'type': 'integer',
'enum': [ 1, 2 ],
},
'items': [ 'items': [
{ {
'name': 'AllowJavaScript', 'name': 'AllowJavaScript',
...@@ -1453,6 +1585,10 @@ ...@@ -1453,6 +1585,10 @@
{ {
'name': 'DefaultPluginsSetting', 'name': 'DefaultPluginsSetting',
'type': 'int-enum', 'type': 'int-enum',
'schema': {
'type': 'integer',
'enum': [ 1, 2 ],
},
'items': [ 'items': [
{ {
'name': 'AllowPlugins', 'name': 'AllowPlugins',
...@@ -1477,6 +1613,10 @@ ...@@ -1477,6 +1613,10 @@
{ {
'name': 'DefaultPopupsSetting', 'name': 'DefaultPopupsSetting',
'type': 'int-enum', 'type': 'int-enum',
'schema': {
'type': 'integer',
'enum': [ 1, 2 ],
},
'items': [ 'items': [
{ {
'name': 'AllowPopups', 'name': 'AllowPopups',
...@@ -1501,6 +1641,10 @@ ...@@ -1501,6 +1641,10 @@
{ {
'name': 'DefaultNotificationsSetting', 'name': 'DefaultNotificationsSetting',
'type': 'int-enum', 'type': 'int-enum',
'schema': {
'type': 'integer',
'enum': [ 1, 2, 3 ],
},
'items': [ 'items': [
{ {
'name': 'AllowNotifications', 'name': 'AllowNotifications',
...@@ -1530,6 +1674,10 @@ ...@@ -1530,6 +1674,10 @@
{ {
'name': 'DefaultGeolocationSetting', 'name': 'DefaultGeolocationSetting',
'type': 'int-enum', 'type': 'int-enum',
'schema': {
'type': 'integer',
'enum': [ 1, 2, 3 ],
},
'items': [ 'items': [
{ {
'name': 'AllowGeolocation', 'name': 'AllowGeolocation',
...@@ -1559,6 +1707,10 @@ ...@@ -1559,6 +1707,10 @@
{ {
'name': 'DefaultMediaStreamSetting', 'name': 'DefaultMediaStreamSetting',
'type': 'int-enum', 'type': 'int-enum',
'schema': {
'type': 'integer',
'enum': [ 1, 2 ],
},
'items': [ 'items': [
{ {
'name': 'PromptOnAccess', 'name': 'PromptOnAccess',
...@@ -1583,6 +1735,10 @@ ...@@ -1583,6 +1735,10 @@
{ {
'name': 'AutoSelectCertificateForUrls', 'name': 'AutoSelectCertificateForUrls',
'type': 'list', 'type': 'list',
'schema': {
'type': 'array',
'items': { 'type': 'string' },
},
'supported_on': ['chrome.*:15-', 'chrome_os:0.15-'], 'supported_on': ['chrome.*:15-', 'chrome_os:0.15-'],
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
'example_value': ["{\\\"pattern\\\":\\\"https://www.example.com\\\",\\\"filter\\\":{\\\"ISSUER\\\":{\\\"CN\\\":\\\"certificate issuer name\\\"}}}"], 'example_value': ["{\\\"pattern\\\":\\\"https://www.example.com\\\",\\\"filter\\\":{\\\"ISSUER\\\":{\\\"CN\\\":\\\"certificate issuer name\\\"}}}"],
...@@ -1595,6 +1751,10 @@ ...@@ -1595,6 +1751,10 @@
{ {
'name': 'CookiesAllowedForUrls', 'name': 'CookiesAllowedForUrls',
'type': 'list', 'type': 'list',
'schema': {
'type': 'array',
'items': { 'type': 'string' },
},
'supported_on': ['chrome.*:11-', 'chrome_os:0.11-'], 'supported_on': ['chrome.*:11-', 'chrome_os:0.11-'],
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
'example_value': ['http://www.example.com', '[*.]example.edu'], 'example_value': ['http://www.example.com', '[*.]example.edu'],
...@@ -1607,6 +1767,10 @@ ...@@ -1607,6 +1767,10 @@
{ {
'name': 'CookiesBlockedForUrls', 'name': 'CookiesBlockedForUrls',
'type': 'list', 'type': 'list',
'schema': {
'type': 'array',
'items': { 'type': 'string' },
},
'supported_on': ['chrome.*:11-', 'chrome_os:0.11-'], 'supported_on': ['chrome.*:11-', 'chrome_os:0.11-'],
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
'example_value': ['http://www.example.com', '[*.]example.edu'], 'example_value': ['http://www.example.com', '[*.]example.edu'],
...@@ -1619,6 +1783,10 @@ ...@@ -1619,6 +1783,10 @@
{ {
'name': 'CookiesSessionOnlyForUrls', 'name': 'CookiesSessionOnlyForUrls',
'type': 'list', 'type': 'list',
'schema': {
'type': 'array',
'items': { 'type': 'string' },
},
'supported_on': ['chrome.*:11-', 'chrome_os:0.11-'], 'supported_on': ['chrome.*:11-', 'chrome_os:0.11-'],
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
'example_value': ['http://www.example.com', '[*.]example.edu'], 'example_value': ['http://www.example.com', '[*.]example.edu'],
...@@ -1633,6 +1801,10 @@ ...@@ -1633,6 +1801,10 @@
{ {
'name': 'ImagesAllowedForUrls', 'name': 'ImagesAllowedForUrls',
'type': 'list', 'type': 'list',
'schema': {
'type': 'array',
'items': { 'type': 'string' },
},
'supported_on': ['chrome.*:11-', 'chrome_os:0.11-'], 'supported_on': ['chrome.*:11-', 'chrome_os:0.11-'],
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
'example_value': ['http://www.example.com', '[*.]example.edu'], 'example_value': ['http://www.example.com', '[*.]example.edu'],
...@@ -1645,6 +1817,10 @@ ...@@ -1645,6 +1817,10 @@
{ {
'name': 'ImagesBlockedForUrls', 'name': 'ImagesBlockedForUrls',
'type': 'list', 'type': 'list',
'schema': {
'type': 'array',
'items': { 'type': 'string' },
},
'supported_on': ['chrome.*:11-', 'chrome_os:0.11-'], 'supported_on': ['chrome.*:11-', 'chrome_os:0.11-'],
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
'example_value': ['http://www.example.com', '[*.]example.edu'], 'example_value': ['http://www.example.com', '[*.]example.edu'],
...@@ -1657,6 +1833,10 @@ ...@@ -1657,6 +1833,10 @@
{ {
'name': 'JavaScriptAllowedForUrls', 'name': 'JavaScriptAllowedForUrls',
'type': 'list', 'type': 'list',
'schema': {
'type': 'array',
'items': { 'type': 'string' },
},
'supported_on': ['chrome.*:11-', 'chrome_os:0.11-'], 'supported_on': ['chrome.*:11-', 'chrome_os:0.11-'],
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
'example_value': ['http://www.example.com', '[*.]example.edu'], 'example_value': ['http://www.example.com', '[*.]example.edu'],
...@@ -1669,6 +1849,10 @@ ...@@ -1669,6 +1849,10 @@
{ {
'name': 'JavaScriptBlockedForUrls', 'name': 'JavaScriptBlockedForUrls',
'type': 'list', 'type': 'list',
'schema': {
'type': 'array',
'items': { 'type': 'string' },
},
'supported_on': ['chrome.*:11-', 'chrome_os:0.11-'], 'supported_on': ['chrome.*:11-', 'chrome_os:0.11-'],
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
'example_value': ['http://www.example.com', '[*.]example.edu'], 'example_value': ['http://www.example.com', '[*.]example.edu'],
...@@ -1681,6 +1865,10 @@ ...@@ -1681,6 +1865,10 @@
{ {
'name': 'PluginsAllowedForUrls', 'name': 'PluginsAllowedForUrls',
'type': 'list', 'type': 'list',
'schema': {
'type': 'array',
'items': { 'type': 'string' },
},
'supported_on': ['chrome.*:11-', 'chrome_os:0.11-'], 'supported_on': ['chrome.*:11-', 'chrome_os:0.11-'],
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
'example_value': ['http://www.example.com', '[*.]example.edu'], 'example_value': ['http://www.example.com', '[*.]example.edu'],
...@@ -1693,6 +1881,10 @@ ...@@ -1693,6 +1881,10 @@
{ {
'name': 'PluginsBlockedForUrls', 'name': 'PluginsBlockedForUrls',
'type': 'list', 'type': 'list',
'schema': {
'type': 'array',
'items': { 'type': 'string' },
},
'supported_on': ['chrome.*:11-', 'chrome_os:0.11-'], 'supported_on': ['chrome.*:11-', 'chrome_os:0.11-'],
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
'example_value': ['http://www.example.com', '[*.]example.edu'], 'example_value': ['http://www.example.com', '[*.]example.edu'],
...@@ -1705,6 +1897,10 @@ ...@@ -1705,6 +1897,10 @@
{ {
'name': 'PopupsAllowedForUrls', 'name': 'PopupsAllowedForUrls',
'type': 'list', 'type': 'list',
'schema': {
'type': 'array',
'items': { 'type': 'string' },
},
'supported_on': ['chrome.*:11-', 'chrome_os:0.11-'], 'supported_on': ['chrome.*:11-', 'chrome_os:0.11-'],
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
'example_value': ['http://www.example.com', '[*.]example.edu'], 'example_value': ['http://www.example.com', '[*.]example.edu'],
...@@ -1717,6 +1913,10 @@ ...@@ -1717,6 +1913,10 @@
{ {
'name': 'PopupsBlockedForUrls', 'name': 'PopupsBlockedForUrls',
'type': 'list', 'type': 'list',
'schema': {
'type': 'array',
'items': { 'type': 'string' },
},
'supported_on': ['chrome.*:11-', 'chrome_os:0.11-'], 'supported_on': ['chrome.*:11-', 'chrome_os:0.11-'],
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
'example_value': ['http://www.example.com', '[*.]example.edu'], 'example_value': ['http://www.example.com', '[*.]example.edu'],
...@@ -1729,6 +1929,10 @@ ...@@ -1729,6 +1929,10 @@
{ {
'name': 'NotificationsAllowedForUrls', 'name': 'NotificationsAllowedForUrls',
'type': 'list', 'type': 'list',
'schema': {
'type': 'array',
'items': { 'type': 'string' },
},
'supported_on': ['chrome.*:16-', 'chrome_os:0.16-'], 'supported_on': ['chrome.*:16-', 'chrome_os:0.16-'],
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
'example_value': ['http://www.example.com', '[*.]example.edu'], 'example_value': ['http://www.example.com', '[*.]example.edu'],
...@@ -1741,6 +1945,10 @@ ...@@ -1741,6 +1945,10 @@
{ {
'name': 'NotificationsBlockedForUrls', 'name': 'NotificationsBlockedForUrls',
'type': 'list', 'type': 'list',
'schema': {
'type': 'array',
'items': { 'type': 'string' },
},
'supported_on': ['chrome.*:16-', 'chrome_os:0.16-'], 'supported_on': ['chrome.*:16-', 'chrome_os:0.16-'],
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
'example_value': ['http://www.example.com', '[*.]example.edu'], 'example_value': ['http://www.example.com', '[*.]example.edu'],
...@@ -1749,12 +1957,13 @@ ...@@ -1749,12 +1957,13 @@
'desc': '''Allows you to set a list of url patterns that specify sites which are not allowed to display notifications. 'desc': '''Allows you to set a list of url patterns that specify sites which are not allowed to display notifications.
If this policy is left not set the global default value will be used for all sites either from the 'DefaultNotificationsSetting' policy if it is set, or the user's personal configuration otherwise.''', If this policy is left not set the global default value will be used for all sites either from the 'DefaultNotificationsSetting' policy if it is set, or the user's personal configuration otherwise.''',
} },
], ],
}, },
{ {
'name': 'Disable3DAPIs', 'name': 'Disable3DAPIs',
'type': 'main', 'type': 'main',
'schema': { 'type': 'boolean' },
'supported_on': ['chrome.*:9-', 'chrome_os:0.11-'], 'supported_on': ['chrome.*:9-', 'chrome_os:0.11-'],
'features': {'dynamic_refresh': False}, 'features': {'dynamic_refresh': False},
'example_value': False, 'example_value': False,
...@@ -1769,6 +1978,7 @@ ...@@ -1769,6 +1978,7 @@
{ {
'name': 'PolicyRefreshRate', 'name': 'PolicyRefreshRate',
'type': 'int', 'type': 'int',
'schema': { 'type': 'integer' },
'supported_on': ['chrome_os:0.11-'], 'supported_on': ['chrome_os:0.11-'],
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
'example_value': 3600000, 'example_value': 3600000,
...@@ -1792,6 +2002,10 @@ ...@@ -1792,6 +2002,10 @@
{ {
'name': 'ChromeFrameRendererSettings', 'name': 'ChromeFrameRendererSettings',
'type': 'int-enum', 'type': 'int-enum',
'schema': {
'type': 'integer',
'enum': [ 0, 1 ],
},
'items': [ 'items': [
{ {
'name': 'RenderInHost', 'name': 'RenderInHost',
...@@ -1815,6 +2029,10 @@ ...@@ -1815,6 +2029,10 @@
{ {
'name': 'RenderInChromeFrameList', 'name': 'RenderInChromeFrameList',
'type': 'list', 'type': 'list',
'schema': {
'type': 'array',
'items': { 'type': 'string' },
},
'supported_on': ['chrome_frame:8-'], 'supported_on': ['chrome_frame:8-'],
'features': {'dynamic_refresh': False}, 'features': {'dynamic_refresh': False},
'example_value': ['http://www.example.com', 'http://www.example.edu'], 'example_value': ['http://www.example.com', 'http://www.example.edu'],
...@@ -1829,6 +2047,10 @@ ...@@ -1829,6 +2047,10 @@
{ {
'name': 'RenderInHostList', 'name': 'RenderInHostList',
'type': 'list', 'type': 'list',
'schema': {
'type': 'array',
'items': { 'type': 'string' },
},
'supported_on': ['chrome_frame:8-'], 'supported_on': ['chrome_frame:8-'],
'features': {'dynamic_refresh': False}, 'features': {'dynamic_refresh': False},
'example_value': ['http://www.example.com', 'http://www.example.edu'], 'example_value': ['http://www.example.com', 'http://www.example.edu'],
...@@ -1843,6 +2065,7 @@ ...@@ -1843,6 +2065,7 @@
{ {
'name': 'AdditionalLaunchParameters', 'name': 'AdditionalLaunchParameters',
'type': 'string', 'type': 'string',
'schema': { 'type': 'string' },
'supported_on': ['chrome_frame:19-'], 'supported_on': ['chrome_frame:19-'],
'features': {'dynamic_refresh': False}, 'features': {'dynamic_refresh': False},
'example_value': '--enable-media-stream --enable-media-source', 'example_value': '--enable-media-stream --enable-media-source',
...@@ -1863,6 +2086,10 @@ ...@@ -1863,6 +2086,10 @@
{ {
'name': 'ChromeFrameContentTypes', 'name': 'ChromeFrameContentTypes',
'type': 'list', 'type': 'list',
'schema': {
'type': 'array',
'items': { 'type': 'string' },
},
'supported_on': ['chrome_frame:8-'], 'supported_on': ['chrome_frame:8-'],
'features': {'dynamic_refresh': False}, 'features': {'dynamic_refresh': False},
'example_value': ['text/xml', 'application/xml'], 'example_value': ['text/xml', 'application/xml'],
...@@ -1877,6 +2104,7 @@ ...@@ -1877,6 +2104,7 @@
{ {
'name': 'ChromeOsLockOnIdleSuspend', 'name': 'ChromeOsLockOnIdleSuspend',
'type': 'main', 'type': 'main',
'schema': { 'type': 'boolean' },
'supported_on': ['chrome_os:0.9-'], 'supported_on': ['chrome_os:0.9-'],
'features': { 'features': {
'dynamic_refresh': True, 'dynamic_refresh': True,
...@@ -1898,6 +2126,7 @@ ...@@ -1898,6 +2126,7 @@
{ {
'name': 'InstantEnabled', 'name': 'InstantEnabled',
'type': 'main', 'type': 'main',
'schema': { 'type': 'boolean' },
'supported_on': ['chrome.*:11-', 'chrome_os:0.11-'], 'supported_on': ['chrome.*:11-', 'chrome_os:0.11-'],
'features': { 'features': {
'dynamic_refresh': True, 'dynamic_refresh': True,
...@@ -1919,6 +2148,7 @@ ...@@ -1919,6 +2148,7 @@
{ {
'name': 'TranslateEnabled', 'name': 'TranslateEnabled',
'type': 'main', 'type': 'main',
'schema': { 'type': 'boolean' },
'supported_on': ['chrome.*:12-', 'chrome_os:0.12-'], 'supported_on': ['chrome.*:12-', 'chrome_os:0.12-'],
'features': { 'features': {
'dynamic_refresh': True, 'dynamic_refresh': True,
...@@ -1940,6 +2170,7 @@ ...@@ -1940,6 +2170,7 @@
{ {
'name': 'AllowOutdatedPlugins', 'name': 'AllowOutdatedPlugins',
'type': 'main', 'type': 'main',
'schema': { 'type': 'boolean' },
'supported_on': ['chrome.*:12-', 'chrome_os:0.12-'], 'supported_on': ['chrome.*:12-', 'chrome_os:0.12-'],
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
'example_value': True, 'example_value': True,
...@@ -1956,6 +2187,7 @@ ...@@ -1956,6 +2187,7 @@
{ {
'name': 'AlwaysAuthorizePlugins', 'name': 'AlwaysAuthorizePlugins',
'type': 'main', 'type': 'main',
'schema': { 'type': 'boolean' },
'supported_on': ['chrome.*:13-', 'chrome_os:0.13-'], 'supported_on': ['chrome.*:13-', 'chrome_os:0.13-'],
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
'example_value': True, 'example_value': True,
...@@ -1970,6 +2202,7 @@ ...@@ -1970,6 +2202,7 @@
{ {
'name': 'BookmarkBarEnabled', 'name': 'BookmarkBarEnabled',
'type': 'main', 'type': 'main',
'schema': { 'type': 'boolean' },
'supported_on': ['chrome.*:12-', 'chrome_os:0.12-'], 'supported_on': ['chrome.*:12-', 'chrome_os:0.12-'],
'features': { 'features': {
'dynamic_refresh': True, 'dynamic_refresh': True,
...@@ -1991,6 +2224,7 @@ ...@@ -1991,6 +2224,7 @@
{ {
'name': 'EditBookmarksEnabled', 'name': 'EditBookmarksEnabled',
'type': 'main', 'type': 'main',
'schema': { 'type': 'boolean' },
'supported_on': ['chrome.*:12-', 'chrome_os:0.12-'], 'supported_on': ['chrome.*:12-', 'chrome_os:0.12-'],
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
'example_value': False, 'example_value': False,
...@@ -2005,6 +2239,7 @@ ...@@ -2005,6 +2239,7 @@
{ {
'name': 'AllowFileSelectionDialogs', 'name': 'AllowFileSelectionDialogs',
'type': 'main', 'type': 'main',
'schema': { 'type': 'boolean' },
'supported_on': ['chrome.*:12-'], 'supported_on': ['chrome.*:12-'],
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
'example_value': True, 'example_value': True,
...@@ -2021,6 +2256,7 @@ ...@@ -2021,6 +2256,7 @@
{ {
'name': 'GCFUserDataDir', 'name': 'GCFUserDataDir',
'type': 'string', 'type': 'string',
'schema': { 'type': 'string' },
'supported_on': ['chrome_frame:12-'], 'supported_on': ['chrome_frame:12-'],
'features': {'dynamic_refresh': False}, 'features': {'dynamic_refresh': False},
'example_value': '${user_home}/Chrome Frame', 'example_value': '${user_home}/Chrome Frame',
...@@ -2036,6 +2272,7 @@ ...@@ -2036,6 +2272,7 @@
{ {
'name': 'DevicePolicyRefreshRate', 'name': 'DevicePolicyRefreshRate',
'type': 'int', 'type': 'int',
'schema': { 'type': 'integer' },
'supported_on': ['chrome_os:0.11-'], 'supported_on': ['chrome_os:0.11-'],
'device_only': True, 'device_only': True,
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
...@@ -2051,6 +2288,7 @@ ...@@ -2051,6 +2288,7 @@
{ {
'name': 'ImportBookmarks', 'name': 'ImportBookmarks',
'type': 'main', 'type': 'main',
'schema': { 'type': 'boolean' },
'supported_on': ['chrome.*:15-'], 'supported_on': ['chrome.*:15-'],
'features': { 'features': {
'dynamic_refresh': True, 'dynamic_refresh': True,
...@@ -2069,6 +2307,7 @@ ...@@ -2069,6 +2307,7 @@
{ {
'name': 'ImportHistory', 'name': 'ImportHistory',
'type': 'main', 'type': 'main',
'schema': { 'type': 'boolean' },
'supported_on': ['chrome.*:15-'], 'supported_on': ['chrome.*:15-'],
'features': { 'features': {
'dynamic_refresh': True, 'dynamic_refresh': True,
...@@ -2087,6 +2326,7 @@ ...@@ -2087,6 +2326,7 @@
{ {
'name': 'ImportHomepage', 'name': 'ImportHomepage',
'type': 'main', 'type': 'main',
'schema': { 'type': 'boolean' },
'supported_on': ['chrome.*:15-'], 'supported_on': ['chrome.*:15-'],
'features': { 'features': {
'dynamic_refresh': True, 'dynamic_refresh': True,
...@@ -2105,6 +2345,7 @@ ...@@ -2105,6 +2345,7 @@
{ {
'name': 'ImportSearchEngine', 'name': 'ImportSearchEngine',
'type': 'main', 'type': 'main',
'schema': { 'type': 'boolean' },
'supported_on': ['chrome.*:15-'], 'supported_on': ['chrome.*:15-'],
'features': { 'features': {
'dynamic_refresh': True, 'dynamic_refresh': True,
...@@ -2123,6 +2364,7 @@ ...@@ -2123,6 +2364,7 @@
{ {
'name': 'ImportSavedPasswords', 'name': 'ImportSavedPasswords',
'type': 'main', 'type': 'main',
'schema': { 'type': 'boolean' },
'supported_on': ['chrome.*:15-'], 'supported_on': ['chrome.*:15-'],
'features': { 'features': {
'dynamic_refresh': True, 'dynamic_refresh': True,
...@@ -2141,6 +2383,7 @@ ...@@ -2141,6 +2383,7 @@
{ {
'name': 'MaxConnectionsPerProxy', 'name': 'MaxConnectionsPerProxy',
'type': 'int', 'type': 'int',
'schema': { 'type': 'integer' },
'supported_on': ['chrome.*:14-', 'chrome_os:0.14-'], 'supported_on': ['chrome.*:14-', 'chrome_os:0.14-'],
'features': {'dynamic_refresh': False}, 'features': {'dynamic_refresh': False},
'example_value': 32, 'example_value': 32,
...@@ -2159,6 +2402,7 @@ ...@@ -2159,6 +2402,7 @@
{ {
'name': 'HideWebStorePromo', 'name': 'HideWebStorePromo',
'type': 'main', 'type': 'main',
'schema': { 'type': 'boolean' },
'supported_on': ['chrome.*:15-', 'chrome_os:0.15-'], 'supported_on': ['chrome.*:15-', 'chrome_os:0.15-'],
'features': {'dynamic_refresh': False}, 'features': {'dynamic_refresh': False},
'example_value': False, 'example_value': False,
...@@ -2171,6 +2415,10 @@ ...@@ -2171,6 +2415,10 @@
{ {
'name': 'URLBlacklist', 'name': 'URLBlacklist',
'type': 'list', 'type': 'list',
'schema': {
'type': 'array',
'items': { 'type': 'string' },
},
'supported_on': ['chrome.*:15-', 'chrome_os:0.15-'], 'supported_on': ['chrome.*:15-', 'chrome_os:0.15-'],
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
'example_value': ['example.com', 'https://ssl.server.com', 'hosting.com/bad_path', 'http://server:8080/path', '.exact.hostname.com', '*'], 'example_value': ['example.com', 'https://ssl.server.com', 'hosting.com/bad_path', 'http://server:8080/path', '.exact.hostname.com', '*'],
...@@ -2193,6 +2441,10 @@ ...@@ -2193,6 +2441,10 @@
{ {
'name': 'URLWhitelist', 'name': 'URLWhitelist',
'type': 'list', 'type': 'list',
'schema': {
'type': 'array',
'items': { 'type': 'string' },
},
'supported_on': ['chrome.*:15-', 'chrome_os:0.15-'], 'supported_on': ['chrome.*:15-', 'chrome_os:0.15-'],
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
'example_value': ['example.com', 'https://ssl.server.com', 'hosting.com/bad_path', 'http://server:8080/path', '.exact.hostname.com'], 'example_value': ['example.com', 'https://ssl.server.com', 'hosting.com/bad_path', 'http://server:8080/path', '.exact.hostname.com'],
...@@ -2213,6 +2465,7 @@ ...@@ -2213,6 +2465,7 @@
{ {
'name': 'OpenNetworkConfiguration', 'name': 'OpenNetworkConfiguration',
'type': 'string', 'type': 'string',
'schema': { 'type': 'string' },
'supported_on': ['chrome_os:0.16-'], 'supported_on': ['chrome_os:0.16-'],
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
'example_value': '{ "NetworkConfigurations": [ { "GUID": "{4b224dfd-6849-7a63-5e394343244ae9c9}", "Name": "my WiFi", "Type": "WiFi", "WiFi": { "SSID": "my WiFi", "HiddenSSID": false, "Security": "None", "AutoConnect": true } } ] }', 'example_value': '{ "NetworkConfigurations": [ { "GUID": "{4b224dfd-6849-7a63-5e394343244ae9c9}", "Name": "my WiFi", "Type": "WiFi", "WiFi": { "SSID": "my WiFi", "HiddenSSID": false, "Security": "None", "AutoConnect": true } } ] }',
...@@ -2223,6 +2476,7 @@ ...@@ -2223,6 +2476,7 @@
{ {
'name': 'DeviceOpenNetworkConfiguration', 'name': 'DeviceOpenNetworkConfiguration',
'type': 'string', 'type': 'string',
'schema': { 'type': 'string' },
'supported_on': ['chrome_os:0.16-'], 'supported_on': ['chrome_os:0.16-'],
'device_only': True, 'device_only': True,
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
...@@ -2235,6 +2489,7 @@ ...@@ -2235,6 +2489,7 @@
{ {
'name': 'CloudPrintSubmitEnabled', 'name': 'CloudPrintSubmitEnabled',
'type': 'main', 'type': 'main',
'schema': { 'type': 'boolean' },
'supported_on': ['chrome.*:17-'], 'supported_on': ['chrome.*:17-'],
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
'example_value': True, 'example_value': True,
...@@ -2249,6 +2504,7 @@ ...@@ -2249,6 +2504,7 @@
{ {
'name': 'EnterpriseWebStoreURL', 'name': 'EnterpriseWebStoreURL',
'type': 'string', 'type': 'string',
'schema': { 'type': 'string' },
'supported_on': ['chrome.*:17-', 'chrome_os:0.17-'], 'supported_on': ['chrome.*:17-', 'chrome_os:0.17-'],
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
'example_value': 'http://company-intranet/chromeapps', 'example_value': 'http://company-intranet/chromeapps',
...@@ -2261,6 +2517,7 @@ ...@@ -2261,6 +2517,7 @@
{ {
'name': 'EnterpriseWebStoreName', 'name': 'EnterpriseWebStoreName',
'type': 'string', 'type': 'string',
'schema': { 'type': 'string' },
'supported_on': ['chrome.*:17-', 'chrome_os:0.17-'], 'supported_on': ['chrome.*:17-', 'chrome_os:0.17-'],
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
'example_value': 'WidgCo Chrome Apps', 'example_value': 'WidgCo Chrome Apps',
...@@ -2273,6 +2530,7 @@ ...@@ -2273,6 +2530,7 @@
{ {
'name': 'EnableOriginBoundCerts', 'name': 'EnableOriginBoundCerts',
'type': 'main', 'type': 'main',
'schema': { 'type': 'boolean' },
'supported_on': ['chrome.*:17-'], 'supported_on': ['chrome.*:17-'],
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
'future': True, 'future': True,
...@@ -2286,6 +2544,7 @@ ...@@ -2286,6 +2544,7 @@
{ {
'name': 'EnableMemoryInfo', 'name': 'EnableMemoryInfo',
'type': 'main', 'type': 'main',
'schema': { 'type': 'boolean' },
'supported_on': ['chrome.*:17-', 'chrome_os:0.18-'], 'supported_on': ['chrome.*:17-', 'chrome_os:0.18-'],
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
'future': True, 'future': True,
...@@ -2299,6 +2558,7 @@ ...@@ -2299,6 +2558,7 @@
{ {
'name': 'DisablePrintPreview', 'name': 'DisablePrintPreview',
'type': 'main', 'type': 'main',
'schema': { 'type': 'boolean' },
'supported_on': ['chrome.*:18-'], 'supported_on': ['chrome.*:18-'],
'features': {'dynamic_refresh': False}, 'features': {'dynamic_refresh': False},
'example_value': False, 'example_value': False,
...@@ -2309,6 +2569,7 @@ ...@@ -2309,6 +2569,7 @@
{ {
'name': 'DisableSSLRecordSplitting', 'name': 'DisableSSLRecordSplitting',
'type': 'main', 'type': 'main',
'schema': { 'type': 'boolean' },
'supported_on': ['chrome.*:18-', 'chrome_os:0.18-'], 'supported_on': ['chrome.*:18-', 'chrome_os:0.18-'],
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
'example_value': True, 'example_value': True,
...@@ -2321,6 +2582,7 @@ ...@@ -2321,6 +2582,7 @@
{ {
'name': 'EnableOnlineRevocationChecks', 'name': 'EnableOnlineRevocationChecks',
'type': 'main', 'type': 'main',
'schema': { 'type': 'boolean' },
'supported_on': ['chrome.*:19-', 'chrome_os:0.19-'], 'supported_on': ['chrome.*:19-', 'chrome_os:0.19-'],
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
'example_value': False, 'example_value': False,
...@@ -2333,6 +2595,7 @@ ...@@ -2333,6 +2595,7 @@
{ {
'name': 'ReportDeviceVersionInfo', 'name': 'ReportDeviceVersionInfo',
'type': 'main', 'type': 'main',
'schema': { 'type': 'boolean' },
'supported_on': ['chrome_os:0.18-'], 'supported_on': ['chrome_os:0.18-'],
'device_only': True, 'device_only': True,
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
...@@ -2346,6 +2609,7 @@ ...@@ -2346,6 +2609,7 @@
{ {
'name': 'ReportDeviceActivityTimes', 'name': 'ReportDeviceActivityTimes',
'type': 'main', 'type': 'main',
'schema': { 'type': 'boolean' },
'supported_on': ['chrome_os:18-'], 'supported_on': ['chrome_os:18-'],
'device_only': True, 'device_only': True,
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
...@@ -2359,6 +2623,7 @@ ...@@ -2359,6 +2623,7 @@
{ {
'name': 'ReportDeviceBootMode', 'name': 'ReportDeviceBootMode',
'type': 'main', 'type': 'main',
'schema': { 'type': 'boolean' },
'supported_on': ['chrome_os:18-'], 'supported_on': ['chrome_os:18-'],
'device_only': True, 'device_only': True,
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
...@@ -2372,6 +2637,7 @@ ...@@ -2372,6 +2637,7 @@
{ {
'name': 'ReportDeviceLocation', 'name': 'ReportDeviceLocation',
'type': 'main', 'type': 'main',
'schema': { 'type': 'boolean' },
'supported_on': ['chrome_os:20-'], 'supported_on': ['chrome_os:20-'],
'device_only': True, 'device_only': True,
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
...@@ -2386,6 +2652,10 @@ ...@@ -2386,6 +2652,10 @@
{ {
'name': 'DeviceUserWhitelist', 'name': 'DeviceUserWhitelist',
'type': 'list', 'type': 'list',
'schema': {
'type': 'array',
'items': { 'type': 'string' },
},
'supported_on': ['chrome_os:12-'], 'supported_on': ['chrome_os:12-'],
'device_only': True, 'device_only': True,
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
...@@ -2399,6 +2669,7 @@ ...@@ -2399,6 +2669,7 @@
{ {
'name': 'DeviceAllowNewUsers', 'name': 'DeviceAllowNewUsers',
'type': 'main', 'type': 'main',
'schema': { 'type': 'boolean' },
'supported_on': ['chrome_os:12-'], 'supported_on': ['chrome_os:12-'],
'device_only': True, 'device_only': True,
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
...@@ -2412,6 +2683,7 @@ ...@@ -2412,6 +2683,7 @@
{ {
'name': 'DeviceGuestModeEnabled', 'name': 'DeviceGuestModeEnabled',
'type': 'main', 'type': 'main',
'schema': { 'type': 'boolean' },
'supported_on': ['chrome_os:12-'], 'supported_on': ['chrome_os:12-'],
'device_only': True, 'device_only': True,
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
...@@ -2425,6 +2697,7 @@ ...@@ -2425,6 +2697,7 @@
{ {
'name': 'DeviceShowUserNamesOnSignin', 'name': 'DeviceShowUserNamesOnSignin',
'type': 'main', 'type': 'main',
'schema': { 'type': 'boolean' },
'supported_on': ['chrome_os:12-'], 'supported_on': ['chrome_os:12-'],
'device_only': True, 'device_only': True,
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
...@@ -2436,6 +2709,7 @@ ...@@ -2436,6 +2709,7 @@
{ {
'name': 'DeviceDataRoamingEnabled', 'name': 'DeviceDataRoamingEnabled',
'type': 'main', 'type': 'main',
'schema': { 'type': 'boolean' },
'supported_on': ['chrome_os:12-'], 'supported_on': ['chrome_os:12-'],
'device_only': True, 'device_only': True,
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
...@@ -2447,6 +2721,7 @@ ...@@ -2447,6 +2721,7 @@
{ {
'name': 'DeviceMetricsReportingEnabled', 'name': 'DeviceMetricsReportingEnabled',
'type': 'main', 'type': 'main',
'schema': { 'type': 'boolean' },
'supported_on': ['chrome_os:14-'], 'supported_on': ['chrome_os:14-'],
'device_only': True, 'device_only': True,
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
...@@ -2458,6 +2733,10 @@ ...@@ -2458,6 +2733,10 @@
{ {
'name': 'ChromeOsReleaseChannel', 'name': 'ChromeOsReleaseChannel',
'type': 'string-enum', 'type': 'string-enum',
'schema': {
'type': 'string',
'enum': [ 'stable-channel', 'beta-channel', 'dev-channel' ],
},
'items': [ 'items': [
{ {
'name': 'StableChannel', 'name': 'StableChannel',
...@@ -2473,7 +2752,7 @@ ...@@ -2473,7 +2752,7 @@
'name': 'DevChannel', 'name': 'DevChannel',
'value': 'dev-channel', 'value': 'dev-channel',
'caption': '''Dev channel (may be unstable)''', 'caption': '''Dev channel (may be unstable)''',
} },
], ],
'supported_on': ['chrome_os:0.11-'], 'supported_on': ['chrome_os:0.11-'],
'device_only': True, 'device_only': True,
...@@ -2486,6 +2765,7 @@ ...@@ -2486,6 +2765,7 @@
{ {
'name': 'ChromeOsReleaseChannelDelegated', 'name': 'ChromeOsReleaseChannelDelegated',
'type': 'main', 'type': 'main',
'schema': { 'type': 'boolean' },
'supported_on': ['chrome_os:0.19-'], 'supported_on': ['chrome_os:0.19-'],
'device_only': True, 'device_only': True,
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
...@@ -2499,6 +2779,7 @@ ...@@ -2499,6 +2779,7 @@
{ {
'name': 'DeviceEphemeralUsersEnabled', 'name': 'DeviceEphemeralUsersEnabled',
'type': 'main', 'type': 'main',
'schema': { 'type': 'boolean' },
'supported_on': ['chrome_os:19-'], 'supported_on': ['chrome_os:19-'],
'device_only': True, 'device_only': True,
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
...@@ -2510,6 +2791,10 @@ ...@@ -2510,6 +2791,10 @@
{ {
'name': 'DeviceStartUpUrls', 'name': 'DeviceStartUpUrls',
'type': 'list', 'type': 'list',
'schema': {
'type': 'array',
'items': { 'type': 'string' },
},
'supported_on': ['chrome_os:19-'], 'supported_on': ['chrome_os:19-'],
'device_only': True, 'device_only': True,
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
...@@ -2523,6 +2808,7 @@ ...@@ -2523,6 +2808,7 @@
{ {
'name': 'DeviceIdleLogoutTimeout', 'name': 'DeviceIdleLogoutTimeout',
'type': 'int', 'type': 'int',
'schema': { 'type': 'integer' },
'supported_on': ['chrome_os:19-'], 'supported_on': ['chrome_os:19-'],
'device_only': True, 'device_only': True,
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
...@@ -2538,6 +2824,7 @@ ...@@ -2538,6 +2824,7 @@
{ {
'name': 'DeviceIdleLogoutWarningDuration', 'name': 'DeviceIdleLogoutWarningDuration',
'type': 'int', 'type': 'int',
'schema': { 'type': 'integer' },
'supported_on': ['chrome_os:19-'], 'supported_on': ['chrome_os:19-'],
'device_only': True, 'device_only': True,
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
...@@ -2553,6 +2840,7 @@ ...@@ -2553,6 +2840,7 @@
{ {
'name': 'DeviceLoginScreenSaverId', 'name': 'DeviceLoginScreenSaverId',
'type': 'string', 'type': 'string',
'schema': { 'type': 'string' },
'supported_on': ['chrome_os:19-'], 'supported_on': ['chrome_os:19-'],
'device_only': True, 'device_only': True,
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
...@@ -2566,6 +2854,7 @@ ...@@ -2566,6 +2854,7 @@
{ {
'name': 'DeviceLoginScreenSaverTimeout', 'name': 'DeviceLoginScreenSaverTimeout',
'type': 'int', 'type': 'int',
'schema': { 'type': 'integer' },
'supported_on': ['chrome_os:19-'], 'supported_on': ['chrome_os:19-'],
'device_only': True, 'device_only': True,
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
...@@ -2581,6 +2870,10 @@ ...@@ -2581,6 +2870,10 @@
{ {
'name': 'DeviceAppPack', 'name': 'DeviceAppPack',
'type': 'list', 'type': 'list',
'schema': {
'type': 'array',
'items': { 'type': 'string' },
},
'supported_on': ['chrome_os:19-'], 'supported_on': ['chrome_os:19-'],
'device_only': True, 'device_only': True,
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
...@@ -2596,6 +2889,7 @@ ...@@ -2596,6 +2889,7 @@
{ {
'name': 'DeviceAutoUpdateDisabled', 'name': 'DeviceAutoUpdateDisabled',
'type': 'main', 'type': 'main',
'schema': { 'type': 'boolean' },
'supported_on': ['chrome_os:19-'], 'supported_on': ['chrome_os:19-'],
'device_only': True, 'device_only': True,
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
...@@ -2609,6 +2903,7 @@ ...@@ -2609,6 +2903,7 @@
{ {
'name': 'DeviceTargetVersionPrefix', 'name': 'DeviceTargetVersionPrefix',
'type': 'string', 'type': 'string',
'schema': { 'type': 'string' },
'supported_on': ['chrome_os:19-'], 'supported_on': ['chrome_os:19-'],
'device_only': True, 'device_only': True,
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
...@@ -2627,6 +2922,7 @@ ...@@ -2627,6 +2922,7 @@
{ {
'name': 'DeviceUpdateScatterFactor', 'name': 'DeviceUpdateScatterFactor',
'type': 'int', 'type': 'int',
'schema': { 'type': 'integer' },
'supported_on': ['chrome_os:20-'], 'supported_on': ['chrome_os:20-'],
'device_only': True, 'device_only': True,
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
...@@ -2638,6 +2934,10 @@ ...@@ -2638,6 +2934,10 @@
{ {
'name': 'DeviceUpdateAllowedConnectionTypes', 'name': 'DeviceUpdateAllowedConnectionTypes',
'type': 'list', 'type': 'list',
'schema': {
'type': 'array',
'items': { 'type': 'string' },
},
'supported_on': ['chrome_os:21-'], 'supported_on': ['chrome_os:21-'],
'device_only': True, 'device_only': True,
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
...@@ -2651,6 +2951,7 @@ ...@@ -2651,6 +2951,7 @@
{ {
'name': 'BackgroundModeEnabled', 'name': 'BackgroundModeEnabled',
'type': 'main', 'type': 'main',
'schema': { 'type': 'boolean' },
'supported_on': ['chrome.win:19-', 'chrome.linux:19-'], 'supported_on': ['chrome.win:19-', 'chrome.linux:19-'],
'features': { 'features': {
'dynamic_refresh': True, 'dynamic_refresh': True,
...@@ -2676,6 +2977,7 @@ ...@@ -2676,6 +2977,7 @@
{ {
'name': 'GDataDisabled', 'name': 'GDataDisabled',
'type': 'main', 'type': 'main',
'schema': { 'type': 'boolean' },
'supported_on': ['chrome_os:19-'], 'supported_on': ['chrome_os:19-'],
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
'example_value': True, 'example_value': True,
...@@ -2688,6 +2990,7 @@ ...@@ -2688,6 +2990,7 @@
{ {
'name': 'GDataDisabledOverCellular', 'name': 'GDataDisabledOverCellular',
'type': 'main', 'type': 'main',
'schema': { 'type': 'boolean' },
'supported_on': ['chrome_os:19-'], 'supported_on': ['chrome_os:19-'],
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
'example_value': True, 'example_value': True,
...@@ -2702,6 +3005,10 @@ ...@@ -2702,6 +3005,10 @@
{ {
'name': 'PinnedLauncherApps', 'name': 'PinnedLauncherApps',
'type': 'list', 'type': 'list',
'schema': {
'type': 'array',
'items': { 'type': 'string' },
},
'supported_on': ['chrome_os:20-' ], 'supported_on': ['chrome_os:20-' ],
'features': { 'features': {
'dynamic_refresh': True, 'dynamic_refresh': True,
...@@ -2719,6 +3026,7 @@ ...@@ -2719,6 +3026,7 @@
{ {
'name': 'RestrictSigninToPattern', 'name': 'RestrictSigninToPattern',
'type': 'string', 'type': 'string',
'schema': { 'type': 'string' },
'supported_on': ['chrome.*:21-'], 'supported_on': ['chrome.*:21-'],
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
'example_value': '*@domain.com', 'example_value': '*@domain.com',
...@@ -2733,6 +3041,7 @@ ...@@ -2733,6 +3041,7 @@
{ {
'name': 'DisableSafeBrowsingProceedAnyway', 'name': 'DisableSafeBrowsingProceedAnyway',
'type': 'main', 'type': 'main',
'schema': { 'type': 'boolean' },
'supported_on': ['chrome.*:22-', 'chrome_os:0.22-'], 'supported_on': ['chrome.*:22-', 'chrome_os:0.22-'],
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
'example_value': True, 'example_value': True,
...@@ -2745,6 +3054,7 @@ ...@@ -2745,6 +3054,7 @@
{ {
'name': 'SpellCheckServiceEnabled', 'name': 'SpellCheckServiceEnabled',
'type': 'main', 'type': 'main',
'schema': { 'type': 'boolean' },
'supported_on': ['chrome.*:22-', 'chrome_os:0.22-'], 'supported_on': ['chrome.*:22-', 'chrome_os:0.22-'],
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
'example_value': False, 'example_value': False,
...@@ -2759,6 +3069,7 @@ ...@@ -2759,6 +3069,7 @@
{ {
'name': 'ExternalStorageDisabled', 'name': 'ExternalStorageDisabled',
'type': 'main', 'type': 'main',
'schema': { 'type': 'boolean' },
'supported_on': ['chrome_os:0.22-'], 'supported_on': ['chrome_os:0.22-'],
'features': {'dynamic_refresh': True}, 'features': {'dynamic_refresh': True},
'example_value': True, 'example_value': True,
...@@ -2775,6 +3086,7 @@ ...@@ -2775,6 +3086,7 @@
{ {
'name': 'DisableScreenshots', 'name': 'DisableScreenshots',
'type': 'main', 'type': 'main',
'schema': { 'type': 'boolean' },
'supported_on': ['chrome_os:22-', 'chrome.*:22-'], 'supported_on': ['chrome_os:22-', 'chrome.*:22-'],
'features': { 'features': {
'dynamic_refresh': True, 'dynamic_refresh': True,
......
...@@ -19,6 +19,16 @@ TRAILING_WHITESPACE = re.compile('.*?([ \t]+)$') ...@@ -19,6 +19,16 @@ TRAILING_WHITESPACE = re.compile('.*?([ \t]+)$')
# Matches all non-empty strings that contain no whitespaces. # Matches all non-empty strings that contain no whitespaces.
NO_WHITESPACE = re.compile('[^\s]+$') NO_WHITESPACE = re.compile('[^\s]+$')
# Convert a 'type' to its corresponding schema type.
TYPE_TO_SCHEMA = {
'int': 'integer',
'list': 'array',
'dict': 'object',
'main': 'boolean',
'string': 'string',
'int-enum': 'integer',
'string-enum': 'string',
}
class PolicyTemplateChecker(object): class PolicyTemplateChecker(object):
...@@ -112,6 +122,15 @@ class PolicyTemplateChecker(object): ...@@ -112,6 +122,15 @@ class PolicyTemplateChecker(object):
if (i + 1) not in policy_ids: if (i + 1) not in policy_ids:
self._Error('No policy with id: %s' % (i + 1)) self._Error('No policy with id: %s' % (i + 1))
def _CheckPolicySchema(self, policy, policy_type):
'''Checks that the 'schema' field matches the 'type' field.'''
self._CheckContains(policy, 'schema', dict)
if isinstance(policy.get('schema'), dict):
self._CheckContains(policy['schema'], 'type', str)
if policy['schema'].get('type') != TYPE_TO_SCHEMA[policy_type]:
self._Error('Schema type must match the existing type for policy %s' %
policy.get('name'))
def _CheckPolicy(self, policy, is_in_group, policy_ids): def _CheckPolicy(self, policy, is_in_group, policy_ids):
if not isinstance(policy, dict): if not isinstance(policy, dict):
self._Error('Each policy must be a dictionary.', 'policy', None, policy) self._Error('Each policy must be a dictionary.', 'policy', None, policy)
...@@ -122,7 +141,7 @@ class PolicyTemplateChecker(object): ...@@ -122,7 +141,7 @@ class PolicyTemplateChecker(object):
if key not in ('name', 'type', 'caption', 'desc', 'device_only', if key not in ('name', 'type', 'caption', 'desc', 'device_only',
'supported_on', 'label', 'policies', 'items', 'supported_on', 'label', 'policies', 'items',
'example_value', 'features', 'deprecated', 'future', 'example_value', 'features', 'deprecated', 'future',
'id'): 'id', 'schema'):
self.warning_count += 1 self.warning_count += 1
print ('In policy %s: Warning: Unknown key: %s' % print ('In policy %s: Warning: Unknown key: %s' %
(policy.get('name'), key)) (policy.get('name'), key))
...@@ -181,6 +200,11 @@ class PolicyTemplateChecker(object): ...@@ -181,6 +200,11 @@ class PolicyTemplateChecker(object):
id = self._CheckContains(policy, 'id', int) id = self._CheckContains(policy, 'id', int)
self._AddPolicyID(id, policy_ids, policy) self._AddPolicyID(id, policy_ids, policy)
# 'schema' is the new 'type'.
# TODO(joaodasilva): remove the 'type' checks once 'schema' is used
# everywhere.
self._CheckPolicySchema(policy, policy_type)
# Each policy must have a supported_on list. # Each policy must have a supported_on list.
supported_on = self._CheckContains(policy, 'supported_on', list) supported_on = self._CheckContains(policy, 'supported_on', list)
if supported_on is not None: if supported_on is not None:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment