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

Side by Side Diff: chrome/common/extensions/docs/templates/articles/settings_override.html

Issue 216473005: Settings Override API: update documentation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: @battre comments Created 6 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/common/extensions/api/manifest_types.json ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <h1>Settings Overrides</h1> 1 <h1>Settings Overrides</h1>
2 2
3 <p> 3 <p>
4 Settings overrides are a way for extensions to override selected Chrome settings . 4 Settings overrides are a way for extensions to override selected Chrome settings .
5 </p> 5 </p>
6 6
7 <h2 id="others">Homepage, Search Provider, and Startup Pages</h2> 7 <h2 id="others">Homepage, Search Provider, and Startup Pages</h2>
8 <p> 8 <p>
9 Here is an example how <a href="#homepage">homepage</a>, <a 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 10 href="#search_provider">search provider</a> and <a href="#startup_pages">startup
(...skipping 28 matching lines...) Expand all
39 }, 39 },
40 "default_locale": "de", 40 "default_locale": "de",
41 ... 41 ...
42 }</pre> 42 }</pre>
43 43
44 <p class="note"> 44 <p class="note">
45 <b>Note:</b> Settings overrides for <code>homepage</code>, 45 <b>Note:</b> Settings overrides for <code>homepage</code>,
46 <code>search_provider</code>, and <code>startup_pages</code> are only enabled 46 <code>search_provider</code>, and <code>startup_pages</code> are only enabled
47 in the Chrome Dev release.</p> 47 in the Chrome Dev release.</p>
48 48
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">exter nal 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_extensio ns#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>
74
49 <h2 id="reference">Reference</h2> 75 <h2 id="reference">Reference</h2>
50 <p> 76 <p>
51 An extension can override one or more of the following properties in the 77 An extension can override one or more of the following properties in the
52 manifest: 78 manifest:
53 </p> 79 </p>
54 80
55 <ul> 81 <ul>
56 {{#f:apis.manifestTypes.byName.ChromeSettingsOverrides.properties}} 82 {{#f:apis.manifestTypes.byName.ChromeSettingsOverrides.properties}}
57 <li> 83 <li>
58 <p id="{{f.name}}"><b><code>{{f.name}}</code> ({{+partials.variable_type type: f/}})</b></p> 84 <p id="{{f.name}}"><b><code>{{f.name}}</code> ({{+partials.variable_type type: f/}})</b></p>
59 <p>{{f.description}}</p> 85 <p>{{f.description}}</p>
60 {{?f.properties}} 86 {{?f.properties}}
61 <table> 87 <table>
62 <tr><th>Type</th><th>Attribute</th><th>Description</th></tr> 88 <tr><th>Type</th><th>Attribute</th><th>Description</th></tr>
63 {{+partials.type_item 89 {{+partials.type_item
64 title:f.strings.properties 90 title:f.strings.properties
65 display_name:display_name 91 display_name:display_name
66 items:f.properties 92 items:f.properties
67 item_partial:(partials.parameter_full hideParamTOC:true)/}} 93 item_partial:(partials.parameter_full hideParamTOC:true)/}}
68 </table> 94 </table>
69 {{/}} 95 {{/}}
70 {{/}} 96 {{/}}
71 </ul> 97 </ul>
72 98
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/manifest_types.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698