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

Issue 2473483012: Move content/child/background_sync to Blink. (Closed)

Created:
4 years, 1 month ago by adithyas
Modified:
4 years, 1 month ago
CC:
blink-reviews, blink-reviews-api_chromium.org, blink-worker-reviews_chromium.org, chasej+watch_chromium.org, chromium-reviews, darin-cc_chromium.org, dglazkov+blink, haraken, horo+watch_chromium.org, iclelland+watch_chromium.org, jam, jbroman, jkarlin+watch_chromium.org, jsbell+serviceworker_chromium.org, kinuko+serviceworker, kinuko+watch, michaeln, mlamouri+watch-content_chromium.org, nhiroki, Peter Beverloo, serviceworker-reviews, shimazu+serviceworker_chromium.org, tzik
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move content/child/background_sync to Blink. - Moves background_sync_provider to third_party/WebKit/Source/modules/background_sync - Renames background_sync_provider.(h|cc) to BackgroundSyncProvider.(h|cpp) - Removes WebSyncProvider.h - Removes WebSyncRegistration.h - Changes all files to directly use SyncRegistration instead - Removes unneeded type converters - Remove unneeded tests in background_sync_type_converters_unittest and add 2 new tests NOTE: content/child/background_sync isn't completely removed as background_sync_type_converters.h is still used in content/renderer BUG=662134 Committed: https://crrev.com/c5b9f3648b7b5008dfadd7929d84e2e8c329c214 Cr-Commit-Position: refs/heads/master@{#433109}

Patch Set 1 #

Patch Set 2 : Some fixes. #

Patch Set 3 : Update OWNERS to make presubmit happy #

Total comments: 50

Patch Set 4 : Code review changes #

Total comments: 28

Patch Set 5 : Fix nits #

Patch Set 6 : Remove background_sync_type_converters_unittest #

Total comments: 15

Patch Set 7 : Service worker nit #

Total comments: 2

Patch Set 8 : Fix nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+232 lines, -616 lines) Patch
M content/child/BUILD.gn View 1 2 3 4 5 6 1 chunk +0 lines, -2 lines 0 comments Download
M content/child/background_sync/OWNERS View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
D content/child/background_sync/background_sync_provider.h View 1 chunk +0 lines, -81 lines 0 comments Download
D content/child/background_sync/background_sync_provider.cc View 1 chunk +0 lines, -222 lines 0 comments Download
M content/child/background_sync/background_sync_type_converters.h View 1 2 chunks +0 lines, -35 lines 0 comments Download
M content/child/background_sync/background_sync_type_converters.cc View 2 chunks +0 lines, -53 lines 0 comments Download
M content/child/background_sync/background_sync_type_converters_unittest.cc View 1 2 3 4 5 1 chunk +0 lines, -86 lines 0 comments Download
M content/child/blink_platform_impl.h View 1 2 3 4 3 chunks +1 line, -3 lines 0 comments Download
M content/child/blink_platform_impl.cc View 1 3 chunks +0 lines, -11 lines 0 comments Download
M content/child/service_worker/web_service_worker_registration_impl.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M content/child/service_worker/web_service_worker_registration_impl.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M content/renderer/background_sync/background_sync_client_impl.cc View 1 1 chunk +0 lines, -3 lines 0 comments Download
M content/renderer/service_worker/service_worker_context_client.cc View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M content/test/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/background_sync/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/background_sync/BackgroundSyncProvider.h View 1 2 3 4 5 6 7 1 chunk +56 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/background_sync/BackgroundSyncProvider.cpp View 1 2 3 4 5 1 chunk +124 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/background_sync/SyncCallbacks.h View 5 chunks +10 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/modules/background_sync/SyncCallbacks.cpp View 2 chunks +4 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/modules/background_sync/SyncManager.h View 1 2 3 4 2 chunks +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/background_sync/SyncManager.cpp View 1 2 3 4 5 6 7 3 chunks +20 lines, -18 lines 0 comments Download
M third_party/WebKit/public/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/public/platform/modules/background_sync/WebSyncClient.h View 1 chunk +0 lines, -1 line 0 comments Download
D third_party/WebKit/public/platform/modules/background_sync/WebSyncProvider.h View 1 chunk +0 lines, -43 lines 0 comments Download
D third_party/WebKit/public/platform/modules/background_sync/WebSyncRegistration.h View 1 chunk +0 lines, -42 lines 0 comments Download
M third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerRegistration.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 73 (45 generated)
adithyas
4 years, 1 month ago (2016-11-04 20:40:16 UTC) #14
haraken
https://codereview.chromium.org/2473483012/diff/40001/third_party/WebKit/Source/modules/background_sync/BackgroundSyncProvider.cpp File third_party/WebKit/Source/modules/background_sync/BackgroundSyncProvider.cpp (right): https://codereview.chromium.org/2473483012/diff/40001/third_party/WebKit/Source/modules/background_sync/BackgroundSyncProvider.cpp#newcode1 third_party/WebKit/Source/modules/background_sync/BackgroundSyncProvider.cpp:1: // Copyright 2015 The Chromium Authors. All rights reserved. ...
4 years, 1 month ago (2016-11-05 13:00:19 UTC) #18
jbroman
Thanks for taking this on; this is already looking pretty good. A few comments (mostly ...
4 years, 1 month ago (2016-11-05 22:51:09 UTC) #19
adithyas
https://codereview.chromium.org/2473483012/diff/40001/third_party/WebKit/Source/modules/background_sync/BackgroundSyncProvider.cpp File third_party/WebKit/Source/modules/background_sync/BackgroundSyncProvider.cpp (right): https://codereview.chromium.org/2473483012/diff/40001/third_party/WebKit/Source/modules/background_sync/BackgroundSyncProvider.cpp#newcode21 third_party/WebKit/Source/modules/background_sync/BackgroundSyncProvider.cpp:21: DCHECK(Platform::current()); On 2016/11/05 22:51:09, jbroman wrote: > No need ...
4 years, 1 month ago (2016-11-07 19:22:56 UTC) #20
jbroman
lgtm (with only the most minor of nits) once haraken and iclelland approve Great to ...
4 years, 1 month ago (2016-11-07 19:48:10 UTC) #23
haraken
LGTM with comments. https://codereview.chromium.org/2473483012/diff/60001/third_party/WebKit/Source/modules/background_sync/BackgroundSyncProvider.cpp File third_party/WebKit/Source/modules/background_sync/BackgroundSyncProvider.cpp (right): https://codereview.chromium.org/2473483012/diff/60001/third_party/WebKit/Source/modules/background_sync/BackgroundSyncProvider.cpp#newcode31 third_party/WebKit/Source/modules/background_sync/BackgroundSyncProvider.cpp:31: WTF::passed(std::move(callbacks))))); Why do we need WTF::passed? ...
4 years, 1 month ago (2016-11-08 07:11:36 UTC) #27
dcheng
(drive-by) also mojo changes lgtm https://codereview.chromium.org/2473483012/diff/60001/content/child/blink_platform_impl.h File content/child/blink_platform_impl.h (right): https://codereview.chromium.org/2473483012/diff/60001/content/child/blink_platform_impl.h#newcode47 content/child/blink_platform_impl.h:47: class FlingCurveConfiguration; Introduced accidentally ...
4 years, 1 month ago (2016-11-08 07:23:12 UTC) #29
dcheng
https://codereview.chromium.org/2473483012/diff/60001/third_party/WebKit/Source/modules/background_sync/BackgroundSyncProvider.cpp File third_party/WebKit/Source/modules/background_sync/BackgroundSyncProvider.cpp (right): https://codereview.chromium.org/2473483012/diff/60001/third_party/WebKit/Source/modules/background_sync/BackgroundSyncProvider.cpp#newcode31 third_party/WebKit/Source/modules/background_sync/BackgroundSyncProvider.cpp:31: WTF::passed(std::move(callbacks))))); On 2016/11/08 07:11:36, haraken wrote: > > Why ...
4 years, 1 month ago (2016-11-08 07:29:27 UTC) #30
Peter Beverloo
Thanks for doing this! (Reviewing from the background sync POV) https://codereview.chromium.org/2473483012/diff/60001/content/child/background_sync/background_sync_type_converters_unittest.cc File content/child/background_sync/background_sync_type_converters_unittest.cc (right): https://codereview.chromium.org/2473483012/diff/60001/content/child/background_sync/background_sync_type_converters_unittest.cc#newcode1 ...
4 years, 1 month ago (2016-11-08 16:45:11 UTC) #32
adithyas
https://codereview.chromium.org/2473483012/diff/60001/content/child/blink_platform_impl.h File content/child/blink_platform_impl.h (right): https://codereview.chromium.org/2473483012/diff/60001/content/child/blink_platform_impl.h#newcode47 content/child/blink_platform_impl.h:47: class FlingCurveConfiguration; On 2016/11/08 07:23:12, dcheng wrote: > Introduced ...
4 years, 1 month ago (2016-11-08 16:47:47 UTC) #33
jbroman
(just re-iterating my POV on the lifetime issue) https://codereview.chromium.org/2473483012/diff/60001/third_party/WebKit/Source/modules/background_sync/BackgroundSyncProvider.h File third_party/WebKit/Source/modules/background_sync/BackgroundSyncProvider.h (right): https://codereview.chromium.org/2473483012/diff/60001/third_party/WebKit/Source/modules/background_sync/BackgroundSyncProvider.h#newcode25 third_party/WebKit/Source/modules/background_sync/BackgroundSyncProvider.h:25: class ...
4 years, 1 month ago (2016-11-08 17:39:32 UTC) #34
adithyas
https://codereview.chromium.org/2473483012/diff/60001/content/child/background_sync/background_sync_type_converters_unittest.cc File content/child/background_sync/background_sync_type_converters_unittest.cc (right): https://codereview.chromium.org/2473483012/diff/60001/content/child/background_sync/background_sync_type_converters_unittest.cc#newcode1 content/child/background_sync/background_sync_type_converters_unittest.cc:1: On 2016/11/08 16:45:11, Peter Beverloo wrote: > I'd drop ...
4 years, 1 month ago (2016-11-08 18:26:19 UTC) #35
nhiroki
https://codereview.chromium.org/2473483012/diff/60001/third_party/WebKit/Source/modules/background_sync/SyncManager.cpp File third_party/WebKit/Source/modules/background_sync/SyncManager.cpp (right): https://codereview.chromium.org/2473483012/diff/60001/third_party/WebKit/Source/modules/background_sync/SyncManager.cpp#newcode23 third_party/WebKit/Source/modules/background_sync/SyncManager.cpp:23: DEFINE_THREAD_SAFE_STATIC_LOCAL(ThreadSpecific<BackgroundSyncProvider>, On 2016/11/08 07:11:36, haraken wrote: > > nhiroki@: ...
4 years, 1 month ago (2016-11-09 05:26:56 UTC) #36
nhiroki
ServiceWorker changes LGTM
4 years, 1 month ago (2016-11-11 03:33:05 UTC) #43
falken
https://codereview.chromium.org/2473483012/diff/100001/content/child/service_worker/web_service_worker_registration_impl.cc File content/child/service_worker/web_service_worker_registration_impl.cc (right): https://codereview.chromium.org/2473483012/diff/100001/content/child/service_worker/web_service_worker_registration_impl.cc#newcode196 content/child/service_worker/web_service_worker_registration_impl.cc:196: } For code health, can we remove registration_id() and ...
4 years, 1 month ago (2016-11-11 07:59:17 UTC) #45
falken
https://codereview.chromium.org/2473483012/diff/100001/content/child/service_worker/web_service_worker_registration_impl.cc File content/child/service_worker/web_service_worker_registration_impl.cc (right): https://codereview.chromium.org/2473483012/diff/100001/content/child/service_worker/web_service_worker_registration_impl.cc#newcode196 content/child/service_worker/web_service_worker_registration_impl.cc:196: } On 2016/11/11 07:59:17, falken wrote: > For code ...
4 years, 1 month ago (2016-11-11 08:08:07 UTC) #46
adithyas
https://codereview.chromium.org/2473483012/diff/100001/content/child/service_worker/web_service_worker_registration_impl.cc File content/child/service_worker/web_service_worker_registration_impl.cc (right): https://codereview.chromium.org/2473483012/diff/100001/content/child/service_worker/web_service_worker_registration_impl.cc#newcode196 content/child/service_worker/web_service_worker_registration_impl.cc:196: } On 2016/11/11 at 08:08:07, falken wrote: > On ...
4 years, 1 month ago (2016-11-11 15:11:56 UTC) #47
iclelland
This is great, thanks! LGTM with nits https://codereview.chromium.org/2473483012/diff/100001/content/child/service_worker/web_service_worker_registration_impl.h File content/child/service_worker/web_service_worker_registration_impl.h (right): https://codereview.chromium.org/2473483012/diff/100001/content/child/service_worker/web_service_worker_registration_impl.h#newcode70 content/child/service_worker/web_service_worker_registration_impl.h:70: int64_t registrationId() ...
4 years, 1 month ago (2016-11-14 18:43:08 UTC) #52
iclelland
https://codereview.chromium.org/2473483012/diff/100001/content/child/service_worker/web_service_worker_registration_impl.h File content/child/service_worker/web_service_worker_registration_impl.h (right): https://codereview.chromium.org/2473483012/diff/100001/content/child/service_worker/web_service_worker_registration_impl.h#newcode70 content/child/service_worker/web_service_worker_registration_impl.h:70: int64_t registrationId() const override; On 2016/11/14 18:43:07, iclelland wrote: ...
4 years, 1 month ago (2016-11-14 18:44:02 UTC) #53
adithyas
https://codereview.chromium.org/2473483012/diff/100001/third_party/WebKit/Source/modules/background_sync/BackgroundSyncProvider.h File third_party/WebKit/Source/modules/background_sync/BackgroundSyncProvider.h (right): https://codereview.chromium.org/2473483012/diff/100001/third_party/WebKit/Source/modules/background_sync/BackgroundSyncProvider.h#newcode22 third_party/WebKit/Source/modules/background_sync/BackgroundSyncProvider.h:22: // object. On 2016/11/14 at 18:43:07, iclelland wrote: > ...
4 years, 1 month ago (2016-11-14 19:51:50 UTC) #54
adithyas
Adding @esprehn to review content/child/blink_platform_impl.* changes
4 years, 1 month ago (2016-11-16 17:57:01 UTC) #60
falken
service worker lgtm/2
4 years, 1 month ago (2016-11-16 23:19:20 UTC) #61
esprehn
lgtm
4 years, 1 month ago (2016-11-17 21:22:25 UTC) #62
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2473483012/140001
4 years, 1 month ago (2016-11-17 21:31:34 UTC) #65
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/317443)
4 years, 1 month ago (2016-11-17 23:55:06 UTC) #67
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2473483012/140001
4 years, 1 month ago (2016-11-18 00:30:58 UTC) #69
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 1 month ago (2016-11-18 04:40:39 UTC) #71
commit-bot: I haz the power
4 years, 1 month ago (2016-11-18 04:48:18 UTC) #73
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/c5b9f3648b7b5008dfadd7929d84e2e8c329c214
Cr-Commit-Position: refs/heads/master@{#433109}

Powered by Google App Engine
This is Rietveld 408576698