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

Issue 10545104: Refactor chrome.alarms interface to support absolute alarm deadlines. (Closed)

Created:
8 years, 6 months ago by Jeffrey Yasskin
Modified:
8 years, 6 months ago
CC:
chromium-reviews, Aaron Boodman, mihaip-chromium-reviews_chromium.org
Visibility:
Public.

Description

Refactor chrome.alarms interface to support absolute alarm deadlines. BUG=122817 TEST=Created an extension with absolute delays under 5 minutes away, and watched that they didn't fire for 5 minutes. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=142037

Patch Set 1 #

Total comments: 6

Patch Set 2 : Split create into createOneShot and createRepeating #

Total comments: 2

Patch Set 3 : Rename timeToFire to time #

Total comments: 15

Patch Set 4 : Fix Matt's comments, and re-merge create() #

Total comments: 6

Patch Set 5 : Fix whitespace, documentation. #

Patch Set 6 : Merge with r141780 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+463 lines, -247 lines) Patch
M base/value_conversions.h View 1 2 3 4 5 2 chunks +3 lines, -3 lines 0 comments Download
M base/value_conversions.cc View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/alarms/alarm_manager.h View 1 2 3 4 5 8 chunks +30 lines, -16 lines 0 comments Download
M chrome/browser/extensions/api/alarms/alarm_manager.cc View 1 2 3 4 5 14 chunks +133 lines, -100 lines 0 comments Download
M chrome/browser/extensions/api/alarms/alarms_api.h View 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/alarms/alarms_api.cc View 1 2 3 5 chunks +72 lines, -19 lines 0 comments Download
M chrome/browser/extensions/api/alarms/alarms_api_unittest.cc View 1 2 3 4 15 chunks +173 lines, -85 lines 0 comments Download
M chrome/browser/extensions/extension_system.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/test_extension_system.h View 1 2 3 4 5 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/extensions/test_extension_system.cc View 1 2 3 4 5 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/common/extensions/api/alarms.idl View 1 2 3 4 1 chunk +34 lines, -17 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
Jeffrey Yasskin
8 years, 6 months ago (2012-06-09 04:11:46 UTC) #1
Aaron Boodman
https://chromiumcodereview.appspot.com/10545104/diff/1/chrome/common/extensions/api/alarms.idl File chrome/common/extensions/api/alarms.idl (right): https://chromiumcodereview.appspot.com/10545104/diff/1/chrome/common/extensions/api/alarms.idl#newcode20 chrome/common/extensions/api/alarms.idl:20: double? repeatAfterMinutes; What is the purpose of this property? ...
8 years, 6 months ago (2012-06-09 04:21:10 UTC) #2
Jeffrey Yasskin
https://chromiumcodereview.appspot.com/10545104/diff/1/chrome/common/extensions/api/alarms.idl File chrome/common/extensions/api/alarms.idl (right): https://chromiumcodereview.appspot.com/10545104/diff/1/chrome/common/extensions/api/alarms.idl#newcode20 chrome/common/extensions/api/alarms.idl:20: double? repeatAfterMinutes; On 2012/06/09 04:21:10, Aaron Boodman wrote: > ...
8 years, 6 months ago (2012-06-11 19:28:36 UTC) #3
Aaron Boodman
API lgtm w/ nit below. Matt should still review the code. https://chromiumcodereview.appspot.com/10545104/diff/13/chrome/common/extensions/api/alarms.idl File chrome/common/extensions/api/alarms.idl (right): ...
8 years, 6 months ago (2012-06-11 20:57:28 UTC) #4
Jeffrey Yasskin
https://chromiumcodereview.appspot.com/10545104/diff/13/chrome/common/extensions/api/alarms.idl File chrome/common/extensions/api/alarms.idl (right): https://chromiumcodereview.appspot.com/10545104/diff/13/chrome/common/extensions/api/alarms.idl#newcode32 chrome/common/extensions/api/alarms.idl:32: double? timeToFire; On 2012/06/11 20:57:28, Aaron Boodman wrote: > ...
8 years, 6 months ago (2012-06-11 21:05:06 UTC) #5
Matt Perry
https://chromiumcodereview.appspot.com/10545104/diff/1014/chrome/browser/extensions/api/alarms/alarm_manager.cc File chrome/browser/extensions/api/alarms/alarm_manager.cc (right): https://chromiumcodereview.appspot.com/10545104/diff/1014/chrome/browser/extensions/api/alarms/alarm_manager.cc#newcode152 chrome/browser/extensions/api/alarms/alarm_manager.cc:152: if (double* period_in_minutes = I always thought our style ...
8 years, 6 months ago (2012-06-11 22:32:44 UTC) #6
Jeffrey Yasskin
Matt and I talked about this on IRC, and now that repeating alarms also have ...
8 years, 6 months ago (2012-06-12 19:12:31 UTC) #7
Matt Perry
lgtm https://chromiumcodereview.appspot.com/10545104/diff/4005/chrome/browser/extensions/api/alarms/alarms_api_unittest.cc File chrome/browser/extensions/api/alarms/alarms_api_unittest.cc (right): https://chromiumcodereview.appspot.com/10545104/diff/4005/chrome/browser/extensions/api/alarms/alarms_api_unittest.cc#newcode127 chrome/browser/extensions/api/alarms/alarms_api_unittest.cc:127: &base::MockTimeProvider::StaticNow), nit: looks like this doesn't need to ...
8 years, 6 months ago (2012-06-12 20:54:29 UTC) #8
Aaron Boodman
lgtm https://chromiumcodereview.appspot.com/10545104/diff/4005/chrome/common/extensions/api/alarms.idl File chrome/common/extensions/api/alarms.idl (right): https://chromiumcodereview.appspot.com/10545104/diff/4005/chrome/common/extensions/api/alarms.idl#newcode31 chrome/common/extensions/api/alarms.idl:31: // Cannot be specified with |delayInMinutes|, and one ...
8 years, 6 months ago (2012-06-12 23:02:38 UTC) #9
Jeffrey Yasskin
I'll re-test in the browser, and then commit. Thanks for the review. https://chromiumcodereview.appspot.com/10545104/diff/4005/chrome/browser/extensions/api/alarms/alarms_api_unittest.cc File chrome/browser/extensions/api/alarms/alarms_api_unittest.cc ...
8 years, 6 months ago (2012-06-12 23:37:28 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jyasskin@chromium.org/10545104/12004
8 years, 6 months ago (2012-06-12 23:46:04 UTC) #11
commit-bot: I haz the power
Failed to apply patch for chrome/browser/extensions/api/alarms/alarm_manager.cc: While running patch -p1 --forward --force; patching file chrome/browser/extensions/api/alarms/alarm_manager.cc ...
8 years, 6 months ago (2012-06-12 23:46:09 UTC) #12
Jeffrey Yasskin
Brett, could you review the change to base/value_conversions? I changed the new functions to work ...
8 years, 6 months ago (2012-06-13 18:50:48 UTC) #13
brettw
lgtm
8 years, 6 months ago (2012-06-13 21:50:49 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jyasskin@chromium.org/10545104/28
8 years, 6 months ago (2012-06-13 21:51:59 UTC) #15
commit-bot: I haz the power
8 years, 6 months ago (2012-06-14 00:31:01 UTC) #16
Change committed as 142037

Powered by Google App Engine
This is Rietveld 408576698