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

Unified Diff: chrome/common/extensions/docs/static/external_extensions.html

Issue 9963120: Introduces an additional extension loader that load extra extensions based on per-extension json fi… (Closed) Base URL: https://src.chromium.org/svn/trunk/src/
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/docs/static/external_extensions.html
===================================================================
--- chrome/common/extensions/docs/static/external_extensions.html (revision 133542)
+++ chrome/common/extensions/docs/static/external_extensions.html (working copy)
@@ -82,7 +82,12 @@
Until <a href="http://crbug.com/41902">bug 41902</a> is fixed,
you might want to use the <a href="#registry">Windows registry</a>
instead of the preferences file.
+</p>
+<p class="note">
+<b>Note:</b>
+The <code>external_extensions.json</code> files are deprecated although they are
+still supported for now.
Finnur 2012/04/27 14:29:43 Suggest: Previous versions of Google Chrome used a
Alexandre Abreu 2012/04/27 14:46:52 Done.
</p>
<ol>
@@ -92,8 +97,10 @@
<code>\\server\share\extension.crx</code>
or <code>/home/share/extension.crx</code>.)
</li>
-<li>Locate the <code>external_extensions.json</code> file.
- If the file doesn't exist, create it.
+
+<li>Create a file with the following name in one of the folders listed below:
+ <code>aaaaaaaaaabbbbbbbbbbcccccccccc.json</code> where the file name (without the extension)
+ corresponds to your extension's ID.
The location depends on the operating system.
<dl>
<dt> Windows: </dt>
@@ -104,7 +111,7 @@
<dt> Mac OS X:</dt>
<dd>For a specific user: <code>~USERNAME/Library/Application Support/Google/Chrome/External Extensions/</code><br>
For all users: <code>/Library/Application Support/Google/Chrome/External Extensions/</code>
- <p>The external extensions file for all users is read only if every directory in the path is owned by the user <code>root</code>, has the group <code>admin</code> or <code>wheel</code>, and is not world writable. The path must also be free of symbolic links. These restrictions prevent an unprivileged user from causing extensions to be installed for all users. See <a href="#troubleshooting">troubleshooting</a> for details.</p>
+ <p>The external extension file for all users is read only if every directory in the path is owned by the user <code>root</code>, has the group <code>admin</code> or <code>wheel</code>, and is not world writable. The path must also be free of symbolic links. These restrictions prevent an unprivileged user from causing extensions to be installed for all users. See <a href="#troubleshooting">troubleshooting</a> for details.</p>
<p class="note">
<b>Note:</b> The above path for all users was added in Chrome 16. Prior versions used a different path:<br/>
<code>/Applications/Google Chrome.app/Contents/Extensions/</code>
@@ -113,25 +120,26 @@
<dt> Linux: </dt>
<dd> <code>/opt/google/chrome/extensions/</code> <br>
+ </dd>
+ <dd> <code>/usr/share/google-chrome/extensions/</code> <br>
<b>Note:</b> Use <code>chmod</code> if necessary
- to make sure that <code>extensions/external_extensions.json</code>
- is world-readable.
+ to make sure that the <code>aaaaaaaaaabbbbbbbbbbcccccccccc.json</code> files
+ are world-readable.
</dd>
</dl>
</li>
-<li> Add an entry to <code>external_extensions.json</code>
-for your extension's ID. If you are installing from a file, specify the
-extension's location and version with fields named "external_crx" and
-"external_version".
+<li>If you are installing from a file, specify the extension's location and version with fields
+named "external_crx" and "external_version" in the file created above.
+<p>
Example:
-<pre>{
- "aaaaaaaaaabbbbbbbbbbcccccccccc": {
+<pre>
+ {
"external_crx": "/home/share/extension.crx",
"external_version": "1.0"
}
-}</pre>
-
+</pre>
+</p>
<p class="note">
<b>Note:</b>
You need to escape
@@ -141,14 +149,13 @@
<code>"\\\\server\\share\\extension.crx"</code>.
</p>
<p>
+<p>
If you are installing from an update URL, specify the extension's update URL
with field name "external_update_url".
</p>
Example:
<pre>{
- "aaaaaaaaaabbbbbbbbbbcccccccccc": {
- "external_update_url": "http://myhost.com/mytestextension/updates.xml"
- }
+ "external_update_url": "http://myhost.com/mytestextension/updates.xml"
}</pre>
<p>
If you would like to install extension only for some browser locales,
@@ -161,13 +168,10 @@
</p>
Example:
<pre>{
- "aaaaaaaaaabbbbbbbbbbcccccccccc": {
- "external_update_url": "http://myhost.com/mytestextension/updates.xml",
- "supported_locales": [ "en", "fr", "de" ]
- }
+ "external_update_url": "http://myhost.com/mytestextension/updates.xml",
+ "supported_locales": [ "en", "fr", "de" ]
}</pre>
</li>
-
<li>Save the JSON file. </li>
<li>Launch Google Chrome and go to <b>chrome://extensions</b>;
you should see the extension listed. </li>
@@ -175,7 +179,7 @@
<h3 id="troubleshooting">Troubleshooting Mac OS permissions problems</h3>
-<p>On Mac OS, the external extensions file for all users is only read if file system permissions prevent unprivelaged users from changing it. If you do not see external extensions installed when Chrome is launched, there may be a permissions problem with the external extensions preferences file. To see if this is the problem, follow these steps:</p>
+<p>On Mac OS, the external extensions files for all users is only read if file system permissions prevent unprivelaged users from changing it. If you do not see external extensions installed when Chrome is launched, there may be a permissions problem with the external extensions preferences files. To see if this is the problem, follow these steps:</p>
Finnur 2012/04/27 14:29:43 s/is/are s/unprivelaged/unprivileged/
Alexandre Abreu 2012/04/27 14:46:52 Done.
<ol>
<li> Launch the Console program. You can find it under /Applications/Utilities/Console. </li>
@@ -261,14 +265,13 @@
Not specifying the same id/version
as the one listed in the <code>.crx</code> </li>
<li>
- <code>external_extensions.json</code> is in the wrong location </li>
+ <code>aaaaaaaaaabbbbbbbbbbcccccccccc.json</code> files (where <code>aaaaaaaaaabbbbbbbbbbcccccccccc</code>
+ is the extension's ID) are in the wrong location or the specified extension IDs are not valid</li>
Finnur 2012/04/27 14:29:43 Suggest: The .json file (<code>aaaaaaaaaabbbbbbbbb
Alexandre Abreu 2012/04/27 14:46:52 Done.
<li>
Syntax error in JSON file
(forgetting to separate entries with comma or
leaving a trailing comma somewhere) </li>
<li>
- Extra curly brackets around the top level dictionary </li>
- <li>
JSON file entry points to the wrong path
to the <code>.crx</code> (or path specified but no filename) </li>
<li>

Powered by Google App Engine
This is Rietveld 408576698