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

Side by Side Diff: chrome/common/extensions/docs/templates/intros/alarms.html

Issue 11818010: Make chrome.alarms API accept non-integers and too-short delays. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: After discussion, switch to 1-minute minimum alarm time Created 7 years, 11 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
OLDNEW
1 <table class="intro"> 1 <table class="intro">
2 <tr> 2 <tr>
3 <th scope="col"></th> 3 <th scope="col"></th>
4 <th scope="col"></th> 4 <th scope="col"></th>
5 </tr> 5 </tr>
6 <tr> 6 <tr>
7 <td><strong>Description:</strong></td> 7 <td><strong>Description:</strong></td>
8 <td>Use the <code>chrome.alarms</code> module 8 <td>Use the <code>chrome.alarms</code> module
9 to schedule code to run periodically 9 to schedule code to run periodically
10 or at a specified time in the future.</td> 10 or at a specified time in the future.</td>
11 </tr> 11 </tr>
12 <tr> 12 <tr>
13 <td><strong>Availability:</strong></td> 13 <td><strong>Availability:</strong></td>
14 <td>Google Chrome 22</td> 14 <td>Google Chrome 22</td>
15 </tr> 15 </tr>
16 <tr> 16 <tr>
17 <td><strong>Permissions:</strong></td> 17 <td><strong>Permissions:</strong></td>
18 <td><code>"alarms"</code></td> 18 <td><code>"alarms"</code></td>
19 </tr> 19 </tr>
20 <tr> 20 <tr>
21 <td><strong>Learn more:</strong></td> 21 <td><strong>Learn more:</strong></td>
22 <td><a href="event_pages.html">Event Pages</a></td> 22 <td><a href="event_pages.html">Event Pages</a></td>
23 </tr> 23 </tr>
24 </table> 24 </table>
25
26 <h2 id="frequency-limits">Alarm frequency limits</h2>
27 <p>In order to reduce the load on the user's machine, Chrome limits
28 alarms to at most once every 5 minutes but may delay them an arbitrary
29 amount more. That is, setting
30 <code>$ref:[alarms.AlarmCreateInfo.delayInMinutes
31 delayInMinutes]</code> or
32 <code>$ref:[alarms.AlarmCreateInfo.periodInMinutes
33 periodInMinutes]</code> to less than <code>5</code> will cause an
34 error. <code>$ref:[alarms.AlarmCreateInfo.when when]</code> can be
35 set to less than 5 minutes after "now" but won't actually cause the
36 alarm to run for at least 5 minutes.</p>
37
38 <p>To help you debug your app or extension, when you've loaded it
39 unpacked, there's no limit to how often the alarm can fire.</p>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698