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

Issue 2481393002: [background-sync] Remove WebSyncError and SyncCallbacks (Closed)

Created:
4 years, 1 month ago by adithyas
Modified:
4 years, 1 month ago
CC:
blink-reviews, blink-reviews-api_chromium.org, chasej+watch_chromium.org, chromium-reviews, darin-cc_chromium.org, dglazkov+blink, haraken, iclelland+watch_chromium.org, jam, jkarlin+watch_chromium.org, Peter Beverloo
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[background-sync] Remove WebSyncError and SyncCallbacks - Follow up to http://crrev.com/2473483012 - Remove WebSyncError and SyncError - Remove SyncCallbacks and put all functionality inside BackgroundSyncProvider directly - Remove WebSyncClient.h (file was not being used anywhere) BUG=662134 Committed: https://crrev.com/958b47bdc79d4636041ee59a0ac7874dfca84bba Cr-Commit-Position: refs/heads/master@{#433584}

Patch Set 1 #

Patch Set 2 : Remove SyncCallbacks #

Patch Set 3 : Make some methods static #

Patch Set 4 : Remove WebSyncClient.h #

Patch Set 5 : Deleting files again #

Patch Set 6 : Rebase #

Total comments: 14

Patch Set 7 : Code review changes #

Total comments: 6

Patch Set 8 : Rebase, use auto #

Patch Set 9 : Remove stray SyncError declaration #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -326 lines) Patch
M content/child/background_sync/background_sync_type_converters.h View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/background_sync/BUILD.gn View 1 2 3 4 5 6 1 chunk +0 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/modules/background_sync/BackgroundSyncProvider.h View 1 2 3 4 5 6 7 8 2 chunks +7 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/modules/background_sync/BackgroundSyncProvider.cpp View 1 2 3 4 5 6 7 4 chunks +35 lines, -29 lines 0 comments Download
D third_party/WebKit/Source/modules/background_sync/SyncCallbacks.h View 1 2 3 4 5 1 chunk +0 lines, -79 lines 0 comments Download
M third_party/WebKit/Source/modules/background_sync/SyncCallbacks.cpp View 1 1 chunk +0 lines, -80 lines 0 comments Download
M third_party/WebKit/Source/modules/background_sync/SyncError.h View 1 2 3 4 5 6 1 chunk +0 lines, -26 lines 0 comments Download
M third_party/WebKit/Source/modules/background_sync/SyncError.cpp View 1 2 3 4 5 6 1 chunk +0 lines, -30 lines 0 comments Download
M third_party/WebKit/Source/modules/background_sync/SyncManager.cpp View 1 2 3 4 5 6 7 3 chunks +3 lines, -6 lines 0 comments Download
M third_party/WebKit/public/BUILD.gn View 1 2 3 4 5 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/public/platform/modules/background_sync/WebSyncClient.h View 1 2 3 1 chunk +0 lines, -28 lines 0 comments Download
D third_party/WebKit/public/platform/modules/background_sync/WebSyncError.h View 1 chunk +0 lines, -31 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 41 (25 generated)
adithyas
4 years, 1 month ago (2016-11-18 16:21:35 UTC) #14
jbroman
I think there's a little more code that can be simplified here (see comments). Otherwise, ...
4 years, 1 month ago (2016-11-18 16:53:32 UTC) #16
haraken
LGTM with jbroman's comments addressed.
4 years, 1 month ago (2016-11-18 18:52:03 UTC) #19
adithyas
Addressed jbroman's comments https://codereview.chromium.org/2481393002/diff/100001/third_party/WebKit/Source/modules/background_sync/BackgroundSyncProvider.cpp File third_party/WebKit/Source/modules/background_sync/BackgroundSyncProvider.cpp (right): https://codereview.chromium.org/2481393002/diff/100001/third_party/WebKit/Source/modules/background_sync/BackgroundSyncProvider.cpp#newcode21 third_party/WebKit/Source/modules/background_sync/BackgroundSyncProvider.cpp:21: if (!resolver->getExecutionContext() || On 2016/11/18 at ...
4 years, 1 month ago (2016-11-18 20:05:00 UTC) #20
jbroman
Still LGTM; please update CL description to correspond with the changes you've made. https://codereview.chromium.org/2481393002/diff/120001/third_party/WebKit/Source/modules/background_sync/BackgroundSyncProvider.cpp File ...
4 years, 1 month ago (2016-11-18 20:14:17 UTC) #23
jbroman
(Oh, and also keep the first line of "Description" in sync with "Title". IIRC, only ...
4 years, 1 month ago (2016-11-18 20:15:12 UTC) #24
iclelland
https://codereview.chromium.org/2481393002/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/2481393002/diff/100001/third_party/WebKit/Source/modules/background_sync/BackgroundSyncProvider.h#newcode32 third_party/WebKit/Source/modules/background_sync/BackgroundSyncProvider.h:32: ScriptPromiseResolver*); On 2016/11/18 20:05:00, adithyas wrote: > On 2016/11/18 ...
4 years, 1 month ago (2016-11-18 20:53:46 UTC) #26
iclelland
On deeper inspection, this lgtm :) https://codereview.chromium.org/2481393002/diff/120001/third_party/WebKit/Source/modules/background_sync/SyncManager.cpp File third_party/WebKit/Source/modules/background_sync/SyncManager.cpp (right): https://codereview.chromium.org/2481393002/diff/120001/third_party/WebKit/Source/modules/background_sync/SyncManager.cpp#newcode57 third_party/WebKit/Source/modules/background_sync/SyncManager.cpp:57: std::move(syncRegistration), m_registration->webRegistration(), resolver); ...
4 years, 1 month ago (2016-11-18 21:22:36 UTC) #27
jbroman
My non-owner two cents on the lifetime discussion. https://codereview.chromium.org/2481393002/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/2481393002/diff/100001/third_party/WebKit/Source/modules/background_sync/BackgroundSyncProvider.h#newcode32 third_party/WebKit/Source/modules/background_sync/BackgroundSyncProvider.h:32: ScriptPromiseResolver*); ...
4 years, 1 month ago (2016-11-19 03:32:15 UTC) #30
haraken
https://codereview.chromium.org/2481393002/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/2481393002/diff/100001/third_party/WebKit/Source/modules/background_sync/BackgroundSyncProvider.h#newcode32 third_party/WebKit/Source/modules/background_sync/BackgroundSyncProvider.h:32: ScriptPromiseResolver*); On 2016/11/19 03:32:15, jbroman wrote: > On 2016/11/18 ...
4 years, 1 month ago (2016-11-21 00:21:58 UTC) #31
dcheng
mojo changes lgtm, though I'd also be interested in seeing the simplifications (in a followup)
4 years, 1 month ago (2016-11-21 10:06:02 UTC) #32
iclelland
On 2016/11/19 03:32:15, jbroman wrote: > My non-owner two cents on the lifetime discussion. > ...
4 years, 1 month ago (2016-11-21 13:42:57 UTC) #33
adithyas
https://codereview.chromium.org/2481393002/diff/120001/third_party/WebKit/Source/modules/background_sync/BackgroundSyncProvider.cpp File third_party/WebKit/Source/modules/background_sync/BackgroundSyncProvider.cpp (right): https://codereview.chromium.org/2481393002/diff/120001/third_party/WebKit/Source/modules/background_sync/BackgroundSyncProvider.cpp#newcode96 third_party/WebKit/Source/modules/background_sync/BackgroundSyncProvider.cpp:96: for (const mojom::blink::SyncRegistrationPtr& r : On 2016/11/18 at 20:14:17, ...
4 years, 1 month ago (2016-11-21 15:25:17 UTC) #34
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/2481393002/160001
4 years, 1 month ago (2016-11-21 15:26:15 UTC) #37
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 1 month ago (2016-11-21 18:04:32 UTC) #39
commit-bot: I haz the power
4 years, 1 month ago (2016-11-21 18:06:13 UTC) #41
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/958b47bdc79d4636041ee59a0ac7874dfca84bba
Cr-Commit-Position: refs/heads/master@{#433584}

Powered by Google App Engine
This is Rietveld 408576698