Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 <h1>Autoupdating</h1> | 1 <h1>Autoupdating</h1> |
| 2 | 2 |
| 3 | 3 |
| 4 <p>We want extensions to be autoupdated for some of the same reasons as Google C hrome itself: to incorporate bug and security fixes, add new features or perform ance enhancements, and improve user interfaces.</p> | 4 <p>We want extensions to be autoupdated for some of the same reasons as Google C hrome itself: to incorporate bug and security fixes, add new features or perform ance enhancements, and improve user interfaces.</p> |
| 5 | 5 |
| 6 <p>If you publish your extension using the <a href="https://chrome.google.com/we bstore/developer/dashboard">Chrome Developer Dashboard</a>, you can <em>ignore t his page</em>. You can use the dashboard to release updated versions of your ext ension to users, as well as to the Chrome Web Store.</p> | 6 <p>If you publish your extension using the <a href="https://chrome.google.com/we bstore/developer/dashboard">Chrome Developer Dashboard</a>, you can <em>ignore t his page</em>. You can use the dashboard to release updated versions of your ext ension to users, as well as to the Chrome Web Store.</p> |
| 7 | 7 |
| 8 <p>If you want to host your extension somewhere other than the store, keep readi ng. | 8 <p>If you want to host your extension somewhere other than the store, keep readi ng. |
| 9 You should also read <a href="hosting.html">Hosting</a> and | 9 You should also read <a href="hosting.html">Hosting</a> and |
| 10 <a href="packaging.html">Packaging</a>.</p> | 10 <a href="packaging.html">Packaging</a>.</p> |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 43 | 43 |
| 44 <p>This XML format is borrowed from that used by Omaha, Google's update infrastr ucture. See <a href="http://code.google.com/p/omaha/">http://code.google.com/p/o maha/</a> for more details. | 44 <p>This XML format is borrowed from that used by Omaha, Google's update infrastr ucture. See <a href="http://code.google.com/p/omaha/">http://code.google.com/p/o maha/</a> for more details. |
| 45 The extensions system uses the following attributes | 45 The extensions system uses the following attributes |
| 46 for the <strong><app></strong> | 46 for the <strong><app></strong> |
| 47 and <strong><updatecheck></strong> elements of the update manifest: | 47 and <strong><updatecheck></strong> elements of the update manifest: |
| 48 </p> | 48 </p> |
| 49 | 49 |
| 50 <p><b>appid</b><br> | 50 <p><b>appid</b><br> |
| 51 The extension ID, generated based on a hash of the extension's public key, | 51 The extension ID, generated based on a hash of the extension's public key, |
| 52 as described in <a href="packaging.html">Packaging</a>. You can find the | 52 as described in <a href="packaging.html">Packaging</a>. You can find the |
| 53 ID of an extension or packaged app by going to the Extensions page (<b>chrome:// extensions</b>). | 53 ID of an extension by going to the Extensions page (<b>chrome://extensions</b>). |
|
Aaron Boodman
2012/09/16 00:44:35
What did we decide to do about pages like this tha
Mihai Parparita -not on Chrome
2012/09/16 04:55:02
Given that this page appears in the apps doc set t
Aaron Boodman
2012/09/17 21:18:04
Yeah. My question was what we decided to do in the
mkearney1
2012/09/17 21:30:17
I have a to-do to investigate if there are any spe
| |
| 54 | |
| 55 Hosted apps, however, are not listed on the Extensions page. You can find the I D of any | |
|
Mihai Parparita -not on Chrome
2012/09/16 04:55:02
Hosted apps are not (publicly) deprecated yet, we
Aaron Boodman
2012/09/17 21:23:08
Again, this caveat is something that should only b
mkearney1
2012/09/17 21:30:17
Yes, we need the apps stuff to be in apps docs-- i
| |
| 56 app using the following steps: | |
| 57 </p> | 54 </p> |
| 58 | 55 |
| 59 <ul> | |
| 60 <li> Open the app. You can do this by clicking its icon on the New Tab page.</ li> | |
| 61 <li> Open the JavaScript console. You can do this by clicking the wrench icon | |
| 62 and choosing <b>Tools > JavaScript Console</b>.</li> | |
| 63 <li> Enter the following expression into the JavaScript console: <code>chrome. app.getDetails().id</code> | |
| 64 <p>The console shows the app's ID as a quoted string.</p> | |
| 65 </li> | |
| 66 </ul> | |
| 67 | |
| 68 <p><b>codebase</b><br> | 56 <p><b>codebase</b><br> |
| 69 A URL to the extension's <code>.crx</code> file.</p> | 57 A URL to the extension's <code>.crx</code> file.</p> |
| 70 | 58 |
| 71 <p><b>version</b><br> | 59 <p><b>version</b><br> |
| 72 Used by the client to determine whether it should download the <code>.crx</code> file specified by <code>codebase</code>. It should match the value of "version" in the <code>.crx</code> file's <code>manifest.json</code> file.</p> | 60 Used by the client to determine whether it should download the <code>.crx</code> file specified by <code>codebase</code>. It should match the value of "version" in the <code>.crx</code> file's <code>manifest.json</code> file.</p> |
| 73 <p>The update manifest XML file may contain information about multiple extension s by including multiple <app> elements.</p> | 61 <p>The update manifest XML file may contain information about multiple extension s by including multiple <app> elements.</p> |
| 74 | 62 |
| 75 | 63 |
| 76 <h2>Testing</h2> | 64 <h2>Testing</h2> |
| 77 <p>The default update check frequency is several hours, | 65 <p>The default update check frequency is several hours, |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 141 | 129 |
| 142 <pre><?xml version='1.0' encoding='UTF-8'?> | 130 <pre><?xml version='1.0' encoding='UTF-8'?> |
| 143 <gupdate xmlns='http://www.google.com/update2/response' protocol='2.0'> | 131 <gupdate xmlns='http://www.google.com/update2/response' protocol='2.0'> |
| 144 <app appid='aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'> | 132 <app appid='aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'> |
| 145 <updatecheck codebase='http://myhost.com/mytestextens ion/mte_v2.crx' version='2.0' <b>prodversionmin='3.0.193.0'</b>/> | 133 <updatecheck codebase='http://myhost.com/mytestextens ion/mte_v2.crx' version='2.0' <b>prodversionmin='3.0.193.0'</b>/> |
| 146 </app> | 134 </app> |
| 147 </gupdate> | 135 </gupdate> |
| 148 </pre> | 136 </pre> |
| 149 | 137 |
| 150 <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> | 138 <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> |
| OLD | NEW |