[Storage] Blob Storage Refactoring pt 1:
[chromium-blink-merge.git] / chrome / common / extensions / docs / templates / articles / settings_override.html
blobe9b41a24477b528de4cfa3a9e89902f070c32d8c
1 <h1>Settings Overrides</h1>
3 <p>
4 Settings overrides are a way for extensions to override selected Chrome settings.
5 </p>
7 <h2 id="others">Homepage, Search Provider, and Startup Pages</h2>
8 <p>
9 Here is an example how <a href="#homepage">homepage</a>, <a
10 href="#search_provider">search provider</a> and <a href="#startup_pages">startup
11 pages</a> can be modified in the <a href="manifest">extension
12 manifest</a>. Web sites used in the settings API must be
13 <a href="https://support.google.com/webmasters/answer/35179">verified</a> (via
14 Webmaster Tools) as being associated with that item in the Chrome Web Store.
15 Note that if you verify ownership for a domain (for example, http://example.com)
16 you can use any subdomain or page (for example, http://app.example.com or
17 http://example.com/page.html) within your extension.</p>
19 <pre>{
20 "name": "My extension",
21 ...
22 "chrome_settings_overrides": {
23 "homepage": "http://www.homepage.com",
24 "search_provider": {
25 "name": "name.__MSG_url_domain__",
26 "keyword": "keyword.__MSG_url_domain__",
27 "search_url": "http://www.foo.__MSG_url_domain__/s?q={searchTerms}",
28 "favicon_url": "http://www.foo.__MSG_url_domain__/favicon.ico",
29 "suggest_url": "http://www.foo.__MSG_url_domain__/suggest?q={searchTerms}",
30 "instant_url": "http://www.foo.__MSG_url_domain__/instant?q={searchTerms}",
31 "image_url": "http://www.foo.__MSG_url_domain__/image?q={searchTerms}",
32 "search_url_post_params": "search_lang=__MSG_url_domain__",
33 "suggest_url_post_params": "suggest_lang=__MSG_url_domain__",
34 "instant_url_post_params": "instant_lang=__MSG_url_domain__",
35 "image_url_post_params": "image_lang=__MSG_url_domain__",
36 "alternate_urls": [
37 "http://www.moo.__MSG_url_domain__/s?q={searchTerms}",
38 "http://www.noo.__MSG_url_domain__/s?q={searchTerms}"
40 "encoding": "UTF-8",
41 "is_default": true
43 "startup_pages": ["http://www.startup.com"]
45 "default_locale": "de",
46 ...
47 }</pre>
49 <h2 id="customizing">Customizing values</h2>
50 <p>Values in the manifest can be customized in the following ways:</p>
51 <ul>
52 <li>
53 All values of the <code>search_provider</code>, <code>homepage</code> and
54 <code>startup_pages</code> properties can be localized using the
55 $(ref:i18n chrome.i18n API).
56 </li>
57 <li>
58 For <a href="http://developer.chrome.com/extensions/external_extensions">external extensions</a>,
59 the <code>search_provider</code>, <code>homepage</code> and
60 <code>startup_pages</code> URL values can be parametrized using a registry key.
61 A new registry entry should be created next to the "update_url" key (see
62 instructions <a href="http://developer.chrome.com/extensions/external_extensions#registry">here</a>).
63 The value name is "install_parameter", the value data is an arbitrary string:
64 <pre>{
65 "update_url": "https://clients2.google.com/service/update2/crx",
66 "install_parameter": "Value"
67 }</pre>
68 All occurrences of the substring "__PARAM__" in the manifest URLs will be
69 substituted with the "install_parameter" value. If “install_parameter” is
70 absent, occurrences of "__PARAM__" are removed. Note that "__PARAM__" cannot
71 be part of the hostname. It needs to occur after the first '/' in the URL.
72 </li>
73 </ul>
75 <h2 id="reference">Reference</h2>
76 <p>
77 An extension can override one or more of the following properties in the
78 manifest:
79 </p>
80 {{+partials.manifest_type
81 type:apis.extensions.manifestTypes.byName.ChromeSettingsOverrides /}}