diff options
author | joaodasilva@chromium.org <joaodasilva@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-18 22:21:46 +0000 |
---|---|---|
committer | joaodasilva@chromium.org <joaodasilva@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-18 22:21:46 +0000 |
commit | 419a0571dda6e5cc297331c845f68da7485302da (patch) | |
tree | 84f08f760b5023b8ab725b3e0dc0d6501a795181 /chrome/app/policy/policy_templates.json | |
parent | f2ee14875f7f7945613b7224e377467c2a864bee (diff) | |
download | chromium_src-419a0571dda6e5cc297331c845f68da7485302da.zip chromium_src-419a0571dda6e5cc297331c845f68da7485302da.tar.gz chromium_src-419a0571dda6e5cc297331c845f68da7485302da.tar.bz2 |
Added DisabledSchemes policy.
This is a list of strings. Any protocol scheme listed in this policy is
disabled, and URLs using that scheme won't load (either from the Omnibar, links,
bookmarks, or when requested from the renderer to the browser).
Also introduced ListPrefMember, to track a ListValue preference.
"Virtual" or "pseudo" protocol schemes such as "about" and "view-source" are
also handled.
BUG=57477
TEST=unit_tests, use a policy to disable specific schemes (e.g. "file", "ftp")
Review URL: http://codereview.chromium.org/6712065
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82013 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/app/policy/policy_templates.json')
-rw-r--r-- | chrome/app/policy/policy_templates.json | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/chrome/app/policy/policy_templates.json b/chrome/app/policy/policy_templates.json index 4311177d..d533e4e 100644 --- a/chrome/app/policy/policy_templates.json +++ b/chrome/app/policy/policy_templates.json @@ -94,7 +94,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: 84 +# For your editing convenience: highest ID currently used: 85 # # Placeholders: # The following placeholder strings are automatically substituted: @@ -234,6 +234,19 @@ 'desc': '''Disables use of the SPDY protocol in <ph name="PRODUCT_NAME">$1<ex>Google Chrome</ex></ph>.''', }, { + 'name': 'DisabledSchemes', + 'type': 'list', + 'supported_on': ['chrome.*:12-', 'chrome_os:0.11-'], + 'features': {'dynamic_refresh': 1}, + 'example_value': ['file', 'mailto'], + 'id': 85, + 'caption': '''Disable URL protocol schemes''', + 'desc': '''Disables the listed protocol schemes in <ph name="PRODUCT_NAME">$1<ex>Google Chrome</ex></ph>. + + URLs using a scheme from this list will not load and can not be navigated to.''', + 'label': '''List of disabled protocol schemes''', + }, + { 'name': 'JavascriptEnabled', 'type': 'main', 'supported_on': ['chrome.*:8-', 'chrome_os:0.11-'], |