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

Unified Diff: chrome/common/extensions/docs/examples/api/transientPage/basic/background.js

Issue 10217018: Alarm resolution changed to minutes and minimum delay added. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
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
Index: chrome/common/extensions/docs/examples/api/transientPage/basic/background.js
diff --git a/chrome/common/extensions/docs/examples/api/transientPage/basic/background.js b/chrome/common/extensions/docs/examples/api/transientPage/basic/background.js
index 6c65ba0b2a6b36f105df5a05fee3fa2b522c5992..16eb8df929417d82fedb1a17a57d311597dd2061 100644
--- a/chrome/common/extensions/docs/examples/api/transientPage/basic/background.js
+++ b/chrome/common/extensions/docs/examples/api/transientPage/basic/background.js
@@ -43,7 +43,7 @@ chrome.browserAction.onClicked.addListener(function() {
chrome.extension.onMessage.addListener(function(msg, _, sendResponse) {
if (msg.setAlarm) {
- chrome.experimental.alarms.create({delayInSeconds: 5});
+ chrome.experimental.alarms.create({delayInMinutes: 0.1});
} else if (msg.delayedResponse) {
// Note: setTimeout itself does NOT keep the page awake. We return true
// from the onMessage event handler, which keeps the message channel open -

Powered by Google App Engine
This is Rietveld 408576698