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

Issue 1106523002: [BackgroundSync] Fire one-shot sync events (Closed)

Created:
5 years, 8 months ago by jkarlin
Modified:
5 years, 7 months ago
CC:
iclelland, chromium-reviews, tim+watch_chromium.org, zea+watch_chromium.org, maxbogue+watch_chromium.org, jam, pvalenzuela+watch_chromium.org, plaree+watch_chromium.org, jkarlin+watch_chromium.org, darin-cc_chromium.org, maniscalco+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@store_origin
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[BackgroundSync] Fire one-shot events Fires one-shot events. * Checks for ready events to fire on network change * Checks for ready events to fire on registration * A successful event will unregister itself after firing * A failed event will not fire again until a controlled page load (that is for a future CL) * Lots and lots of tests! BUG=479665 Committed: https://crrev.com/81e977f894c3c8d8f7aec029112ea63b4f7a4def Cr-Commit-Position: refs/heads/master@{#327911}

Patch Set 1 #

Patch Set 2 : Tests complete #

Patch Set 3 : Self review #

Patch Set 4 : Rebase #

Total comments: 7

Patch Set 5 : Rebase #

Patch Set 6 : Remove active serviceworker check. Will handle that in followup CL. #

Patch Set 7 : Keep the ServiceWorkerRegistration alive while firing the sync event #

Patch Set 8 : Rebase #

Patch Set 9 : Moving the functions in the file #

Patch Set 10 : Consistent thread checks #

Patch Set 11 : Rebase fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+597 lines, -25 lines) Patch
M content/browser/background_sync/background_sync.proto View 2 chunks +7 lines, -0 lines 0 comments Download
M content/browser/background_sync/background_sync_manager.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +41 lines, -2 lines 0 comments Download
M content/browser/background_sync/background_sync_manager.cc View 1 2 3 4 5 6 7 8 9 27 chunks +241 lines, -5 lines 0 comments Download
M content/browser/background_sync/background_sync_manager_unittest.cc View 1 2 3 4 5 6 7 12 chunks +308 lines, -18 lines 0 comments Download

Messages

Total messages: 26 (8 generated)
jkarlin
michaeln@ Please look at how the service worker registrations and versions are being used in ...
5 years, 8 months ago (2015-04-24 19:09:41 UTC) #2
jkarlin
On 2015/04/24 19:09:41, jkarlin wrote: > michaeln@ Please look at how the service worker registrations ...
5 years, 8 months ago (2015-04-27 11:28:10 UTC) #4
jkarlin
+r iclelland@, PTAL at everything, thanks!
5 years, 8 months ago (2015-04-27 18:29:26 UTC) #6
nhiroki
On 2015/04/27 11:28:10, jkarlin wrote: > On 2015/04/24 19:09:41, jkarlin wrote: > > michaeln@ Please ...
5 years, 8 months ago (2015-04-28 00:04:27 UTC) #7
iclelland
This looks great -- I added a couple of inline questions about the sync state ...
5 years, 7 months ago (2015-04-28 02:48:53 UTC) #8
jkarlin
https://codereview.chromium.org/1106523002/diff/60001/content/browser/background_sync/background_sync_manager.cc File content/browser/background_sync/background_sync_manager.cc (right): https://codereview.chromium.org/1106523002/diff/60001/content/browser/background_sync/background_sync_manager.cc#newcode677 content/browser/background_sync/background_sync_manager.cc:677: base::MessageLoop::current()->PostTask(FROM_HERE, base::Bind(callback)); On 2015/04/28 02:48:53, iclelland wrote: > Will ...
5 years, 7 months ago (2015-04-28 14:41:00 UTC) #10
jkarlin
johnme@, PTAL. Thanks!
5 years, 7 months ago (2015-04-28 14:41:10 UTC) #11
jkarlin
https://codereview.chromium.org/1106523002/diff/60001/content/browser/background_sync/background_sync_manager.cc File content/browser/background_sync/background_sync_manager.cc (right): https://codereview.chromium.org/1106523002/diff/60001/content/browser/background_sync/background_sync_manager.cc#newcode677 content/browser/background_sync/background_sync_manager.cc:677: base::MessageLoop::current()->PostTask(FROM_HERE, base::Bind(callback)); On 2015/04/28 14:41:00, jkarlin wrote: > On ...
5 years, 7 months ago (2015-04-28 16:39:22 UTC) #12
iclelland
https://codereview.chromium.org/1106523002/diff/60001/content/browser/background_sync/background_sync_manager.cc File content/browser/background_sync/background_sync_manager.cc (right): https://codereview.chromium.org/1106523002/diff/60001/content/browser/background_sync/background_sync_manager.cc#newcode706 content/browser/background_sync/background_sync_manager.cc:706: void BackgroundSyncManager::EventCompleteImpl( On 2015/04/28 14:41:00, jkarlin wrote: > On ...
5 years, 7 months ago (2015-04-28 18:50:39 UTC) #13
jkarlin
https://codereview.chromium.org/1106523002/diff/60001/content/browser/background_sync/background_sync_manager.cc File content/browser/background_sync/background_sync_manager.cc (right): https://codereview.chromium.org/1106523002/diff/60001/content/browser/background_sync/background_sync_manager.cc#newcode706 content/browser/background_sync/background_sync_manager.cc:706: void BackgroundSyncManager::EventCompleteImpl( On 2015/04/28 18:50:39, iclelland wrote: > On ...
5 years, 7 months ago (2015-04-28 21:00:09 UTC) #14
jkarlin
-r johnme@ +r mvanouwekerk@ as this is similar to push messaging interactions with service workers.
5 years, 7 months ago (2015-04-28 21:02:04 UTC) #16
jkarlin
On 2015/04/28 21:02:04, jkarlin wrote: > -r johnme@ +r mvanouwekerk@ as this is similar to ...
5 years, 7 months ago (2015-04-28 21:02:23 UTC) #17
jkarlin
On 2015/04/28 21:02:23, jkarlin wrote: > On 2015/04/28 21:02:04, jkarlin wrote: > > -r johnme@ ...
5 years, 7 months ago (2015-04-30 10:38:44 UTC) #18
Michael van Ouwerkerk
lgtm My only (paranoia) nit is that if one method in a class checks the ...
5 years, 7 months ago (2015-05-01 12:44:29 UTC) #20
jkarlin
Thanks, added the thread checks.
5 years, 7 months ago (2015-05-01 13:08:51 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1106523002/220001
5 years, 7 months ago (2015-05-01 14:46:36 UTC) #24
commit-bot: I haz the power
Committed patchset #11 (id:220001)
5 years, 7 months ago (2015-05-01 15:53:19 UTC) #25
commit-bot: I haz the power
5 years, 7 months ago (2015-05-01 15:54:10 UTC) #26
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/81e977f894c3c8d8f7aec029112ea63b4f7a4def
Cr-Commit-Position: refs/heads/master@{#327911}

Powered by Google App Engine
This is Rietveld 408576698