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

Unified Diff: chrome/browser/extensions/api/alarms/alarm_manager.h

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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/alarms/alarm_manager.h
diff --git a/chrome/browser/extensions/api/alarms/alarm_manager.h b/chrome/browser/extensions/api/alarms/alarm_manager.h
index a5402ae6db8077328926d69450a3cad46e64f5d1..0854a041c7a5ed45063657374a69c4ae2f20e0dc 100644
--- a/chrome/browser/extensions/api/alarms/alarm_manager.h
+++ b/chrome/browser/extensions/api/alarms/alarm_manager.h
@@ -123,8 +123,8 @@ class AlarmManager
scoped_ptr<base::Value> value);
// Schedules the next poll of alarms for when the next soonest alarm runs,
- // but do not more often than min_period.
- void ScheduleNextPoll(base::TimeDelta min_period);
+ // but not more often than the minimum granularity of all alarms.
+ void ScheduleNextPoll();
// Polls the alarms, running any that have elapsed. After running them and
// rescheduling repeating alarms, schedule the next poll.

Powered by Google App Engine
This is Rietveld 408576698