RESOLVED FIXED 189130
Avoid code duplication in ResourceLoadStatisticsMemoryStore::processStatisticsAndDataRecords()
https://bugs.webkit.org/show_bug.cgi?id=189130
Summary Avoid code duplication in ResourceLoadStatisticsMemoryStore::processStatistic...
Chris Dumez
Reported 2018-08-29 16:49:21 PDT
Avoid code duplication in ResourceLoadStatisticsMemoryStore::processStatisticsAndDataRecords().
Attachments
Patch (3.18 KB, patch)
2018-08-29 16:50 PDT, Chris Dumez
no flags
Chris Dumez
Comment 1 2018-08-29 16:50:37 PDT
youenn fablet
Comment 2 2018-08-29 17:10:04 PDT
Comment on attachment 348449 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=348449&action=review > Source/WebKit/UIProcess/ResourceLoadStatisticsMemoryStore.cpp:358 > + return; I guess there is a small behavior change if m_parameters.shouldNotifyPagesWhenDataRecordsWereScanned value is updated between the time removeDataRecords is called and the lambda is executed.
WebKit Commit Bot
Comment 3 2018-08-29 20:40:06 PDT
Comment on attachment 348449 [details] Patch Clearing flags on attachment: 348449 Committed r235495: <https://trac.webkit.org/changeset/235495>
WebKit Commit Bot
Comment 4 2018-08-29 20:40:08 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 5 2018-08-29 20:41:19 PDT
John Wilander
Comment 6 2018-08-30 08:48:53 PDT
Comment on attachment 348449 [details] Patch If I recall correctly, this didn't use to be a pure duplication. There was something about the order in which things were done. But now it is totally a duplication and the patch looks good to me. (The code has been moved and changed too much for me to easily find out what the difference used to be.)
Chris Dumez
Comment 7 2018-08-30 08:52:07 PDT
(In reply to John Wilander from comment #6) > Comment on attachment 348449 [details] > Patch > > If I recall correctly, this didn't use to be a pure duplication. There was > something about the order in which things were done. But now it is totally a > duplication and the patch looks good to me. > > (The code has been moved and changed too much for me to easily find out what > the difference used to be.) Ok, that makes sense. This code has been refactored a lot. Thanks for checking.
Note You need to log in before you can comment on or make changes to this bug.