RESOLVED FIXED 222937
Simplify CallbackAggregator in WebsiteDataStore::fetchDataAndApply()
https://bugs.webkit.org/show_bug.cgi?id=222937
Summary Simplify CallbackAggregator in WebsiteDataStore::fetchDataAndApply()
Chris Dumez
Reported 2021-03-08 13:08:30 PST
Simplify CallbackAggregator in WebsiteDataStore::fetchDataAndApply().
Attachments
Patch (16.08 KB, patch)
2021-03-08 13:11 PST, Chris Dumez
no flags
Patch (18.48 KB, patch)
2021-03-08 17:50 PST, Chris Dumez
ews-feeder: commit-queue-
Patch (19.26 KB, patch)
2021-03-08 18:13 PST, Chris Dumez
no flags
Chris Dumez
Comment 1 2021-03-08 13:11:46 PST
Darin Adler
Comment 2 2021-03-08 17:32:16 PST
Comment on attachment 422609 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=422609&action=review > Source/WebKit/UIProcess/WebsiteData/WebsiteDataStore.cpp:432 > +private: Should indent this 4? > Source/WebKit/UIProcess/WebsiteData/WebsiteDataStore.cpp:441 > + auto callbackAggregator = adoptRef(new CallbackAggregator(fetchOptions, WTFMove(queue), WTFMove(apply), *this)); Seems like there is a missing * here so we get a Ref<> instead of a RefPtr<>.
Chris Dumez
Comment 3 2021-03-08 17:44:55 PST
(In reply to Darin Adler from comment #2) > Comment on attachment 422609 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=422609&action=review > > > Source/WebKit/UIProcess/WebsiteData/WebsiteDataStore.cpp:432 > > +private: > > Should indent this 4? > > > Source/WebKit/UIProcess/WebsiteData/WebsiteDataStore.cpp:441 > > + auto callbackAggregator = adoptRef(new CallbackAggregator(fetchOptions, WTFMove(queue), WTFMove(apply), *this)); > > Seems like there is a missing * here so we get a Ref<> instead of a RefPtr<>. Oh right. We used to not do that to make capture by value convenient in the lambdas. However, Ref<> has a copy-constructor nowadays!
Chris Dumez
Comment 4 2021-03-08 17:50:01 PST
Chris Dumez
Comment 5 2021-03-08 18:13:14 PST
EWS
Comment 6 2021-03-08 19:40:42 PST
Committed r274130: <https://commits.webkit.org/r274130> All reviewed patches have been landed. Closing bug and clearing flags on attachment 422649 [details].
Radar WebKit Bug Importer
Comment 7 2021-03-08 19:41:20 PST
Note You need to log in before you can comment on or make changes to this bug.