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

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
« no previous file with comments | « chrome/common/extensions/docs/external_extensions.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,14 @@
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>
+Previous versions of Google Chrome used an
+<code>external_extensions.json</code> file to specify which extensions to
+install. This file has been deprecated in favor of individual <code>.json</code>
+files, one per extension.
</p>
<ol>
@@ -92,8 +99,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 +113,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 +122,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 +151,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 +170,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,13 +181,13 @@
<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 are only read if file system permissions prevent unprivileged 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>
<ol>
<li> Launch the Console program. You can find it under /Applications/Utilities/Console. </li>
<li> If the leftmost icon in the Console says "Show Log List", click that icon. A second column appears at the left. </li>
<li> Click "Console Messages" in the left pane. </li>
- <li> Search for the string <b>Can not read external extensions</b>. If there is a problem reading the external extensions file, you will find an error message. Look for another error message directly above it, which should explain the issue. For example, if you see the following error:
+ <li> Search for the string <b>Can not read external extensions</b>. If there is a problem reading the external extensions files, you will see an error message. Look for another error message directly above it, which should explain the issue. For example, if you see the following error:
"Path /Library/Application Support/Google/Chrome is owned by the wrong group", you need to use <code>chgrp</code> or the Finder's Get Info dialog to change the directory's group owner to the Administrator group.</li>
<li> After fixing the issue, relaunch Chrome. Test that the external extension is now installed. It is possible that one permissions error keeps Chrome from detecting a second error. If the external extension was not installed, repeat these steps until you do not see an error in the Console application.
</ol>
@@ -234,8 +240,8 @@
<p>To uninstall your extension
(for example, if your software is uninstalled),
-remove the metadata from the preferences file
-or registry. </p>
+remove your preference file (aaaaaaaaaabbbbbbbbbbcccccccccc.json)
+or the metadata from the registry. </p>
<h2 id="faq">FAQ</h2>
@@ -261,14 +267,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>
+ The .json file (<code>aaaaaaaaaabbbbbbbbbbcccccccccc.json</code>) is in
+ the wrong location or the ID specified does not match the extension ID.
<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>
« no previous file with comments | « chrome/common/extensions/docs/external_extensions.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698