diff options
author | skerner@chromium.org <skerner@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-17 15:06:44 +0000 |
---|---|---|
committer | skerner@chromium.org <skerner@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-17 15:06:44 +0000 |
commit | 26d34ad0deeb2316d3e1c6aa6f34763656abd855 (patch) | |
tree | 7fccd99932b881a25b6f634cdf78ccdd36f91c35 /chrome/common/extensions/docs/static | |
parent | 2fb51d9338d95b8a477d7b296ee7c0a90fd92581 (diff) | |
download | chromium_src-26d34ad0deeb2316d3e1c6aa6f34763656abd855.zip chromium_src-26d34ad0deeb2316d3e1c6aa6f34763656abd855.tar.gz chromium_src-26d34ad0deeb2316d3e1c6aa6f34763656abd855.tar.bz2 |
Document a method to get the ID of a hosted app.
Set bug to 109773 because when it is resolved, this part of the documentation may need to be updated.
BUG=109773
TEST=http://www.corp.google.com/~skerner/hostedAppDocUpdate/autoupdate.html#H2-2
Review URL: https://chromiumcodereview.appspot.com/9171003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122510 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/extensions/docs/static')
-rw-r--r-- | chrome/common/extensions/docs/static/autoupdate.html | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/chrome/common/extensions/docs/static/autoupdate.html b/chrome/common/extensions/docs/static/autoupdate.html index 49944fb..1b8d311 100644 --- a/chrome/common/extensions/docs/static/autoupdate.html +++ b/chrome/common/extensions/docs/static/autoupdate.html @@ -49,7 +49,21 @@ and <strong><updatecheck></strong> elements of the update manifest: <p><b>appid</b><br> The extension ID, generated based on a hash of the extension's public key, -as described in <a href="packaging.html">Packaging</a>. You can find the ID of your extension by going to the Extensions page (<b>chrome://extensions</b>).</p> +as described in <a href="packaging.html">Packaging</a>. You can find the +ID of an extension or packaged app by going to the Extensions page (<b>chrome://extensions</b>). + +Hosted apps, however, are not listed on the Extensions page. You can find the ID of any +app using the following steps: +</p> + +<ul> + <li> Open the app. You can do this by clicking its icon on the New Tab page.</li> + <li> Open the JavaScript console. You can do this by clicking the wrench icon + and choosing <b>Tools > JavaScript Console</b>.</li> + <li> Enter the following expression into the JavaScript console: <code>chrome.app.getDetails().id</code> + <p>The console shows the app's ID as a quoted string.</p> + </li> +</ul> <p><b>codebase</b><br> A URL to the extension's <code>.crx</code> file.</p> @@ -92,7 +106,7 @@ both of which point to the same update URL <li> ID: "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" </li> <li> Version: "1.1"</li> </ul> -<li> Extension 2 +<li> Extension 2 <ul> <li> ID: "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" </li> <li> Version: "0.4"</li> @@ -134,4 +148,3 @@ with the request parameters in the POST body. </pre> <p>This would ensure that users of this extension would autoupdate to version 2 only if they are running Google Chrome 3.0.193.0 or greater.</p> - |