RESOLVED FIXED 174301
Further WebResourceLoadStatisticsStore / ResourceLoadStatisticsStore clean up
https://bugs.webkit.org/show_bug.cgi?id=174301
Summary Further WebResourceLoadStatisticsStore / ResourceLoadStatisticsStore clean up
Chris Dumez
Reported 2017-07-09 14:35:03 PDT
Further WebResourceLoadStatisticsStore / ResourceLoadStatisticsStore clean up.
Attachments
Patch (71.21 KB, patch)
2017-07-09 14:40 PDT, Chris Dumez
no flags
Patch (71.24 KB, patch)
2017-07-09 14:43 PDT, Chris Dumez
no flags
Patch (72.44 KB, patch)
2017-07-09 15:00 PDT, Chris Dumez
no flags
Patch (72.47 KB, patch)
2017-07-10 08:45 PDT, Chris Dumez
no flags
Patch (72.42 KB, patch)
2017-07-10 09:17 PDT, Chris Dumez
no flags
Chris Dumez
Comment 1 2017-07-09 14:40:35 PDT
Build Bot
Comment 2 2017-07-09 14:42:36 PDT
Attachment 314953 [details] did not pass style-queue: ERROR: Source/WebKit2/UIProcess/Storage/ResourceLoadStatisticsStore.cpp:257: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit2/UIProcess/Storage/ResourceLoadStatisticsStore.h:74: Extra space before ( in function call [whitespace/parens] [4] Total errors found: 2 in 25 files If any of these errors are false positives, please file a bug against check-webkit-style.
Chris Dumez
Comment 3 2017-07-09 14:43:53 PDT
Build Bot
Comment 4 2017-07-09 14:45:40 PDT
Attachment 314954 [details] did not pass style-queue: ERROR: Source/WebKit2/UIProcess/Storage/ResourceLoadStatisticsStore.cpp:257: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit2/UIProcess/Storage/ResourceLoadStatisticsStore.h:74: Extra space before ( in function call [whitespace/parens] [4] Total errors found: 2 in 25 files If any of these errors are false positives, please file a bug against check-webkit-style.
Chris Dumez
Comment 5 2017-07-09 15:00:46 PDT
Build Bot
Comment 6 2017-07-09 15:02:44 PDT
Attachment 314955 [details] did not pass style-queue: ERROR: Source/WebKit2/UIProcess/Storage/ResourceLoadStatisticsStore.cpp:257: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit2/UIProcess/Storage/ResourceLoadStatisticsStore.h:74: Extra space before ( in function call [whitespace/parens] [4] Total errors found: 2 in 26 files If any of these errors are false positives, please file a bug against check-webkit-style.
Chris Dumez
Comment 7 2017-07-10 08:45:22 PDT
Build Bot
Comment 8 2017-07-10 08:46:43 PDT
Attachment 314983 [details] did not pass style-queue: ERROR: Source/WebKit2/UIProcess/Storage/ResourceLoadStatisticsStore.cpp:257: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit2/UIProcess/Storage/ResourceLoadStatisticsStore.h:74: Extra space before ( in function call [whitespace/parens] [4] Total errors found: 2 in 26 files If any of these errors are false positives, please file a bug against check-webkit-style.
Brent Fulgham
Comment 9 2017-07-10 09:11:32 PDT
Comment on attachment 314983 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=314983&action=review r=me, with some minor comments. > Source/WebKit2/UIProcess/Storage/ResourceLoadStatisticsStore.cpp:173 > + return WTFMove(statistic); Very nice! > Source/WebKit2/UIProcess/Storage/ResourceLoadStatisticsStore.cpp:-322 > -} I wish the code review tool represented moved code better. It looks like this was lifted to the WK2 layer. > Source/WebKit2/UIProcess/WebResourceLoadStatisticsStore.cpp:-156 > - // Switch to the main thread to get the default website data store Is this not true anymore? I can't remember if your other changes ensured that we always were interacting with the right website data store. If you did, then is it really necessary to move to the main runloop? If your changes did not tie us to the main data store, I think this comment is still useful. > Source/WebKit2/UIProcess/WebResourceLoadStatisticsStore.cpp:291 > + // FIXME: Decide what to call this file. I don't think we're going to change the name at this point. Let's just remove this comment.
Chris Dumez
Comment 10 2017-07-10 09:15:27 PDT
Comment on attachment 314983 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=314983&action=review >> Source/WebKit2/UIProcess/Storage/ResourceLoadStatisticsStore.cpp:-322 >> -} > > I wish the code review tool represented moved code better. It looks like this was lifted to the WK2 layer. It was already in WebKit2, I merely moved it to our Telemetry file / namespace. >> Source/WebKit2/UIProcess/WebResourceLoadStatisticsStore.cpp:-156 >> - // Switch to the main thread to get the default website data store > > Is this not true anymore? I can't remember if your other changes ensured that we always were interacting with the right website data store. If you did, then is it really necessary to move to the main runloop? > > If your changes did not tie us to the main data store, I think this comment is still useful. This comment is not a "why" comment IMHO. It basically states what the code does which is already obvious by reading the code. AFAIK, we do not have such comments in WebKit, which is why I dropped it. >> Source/WebKit2/UIProcess/WebResourceLoadStatisticsStore.cpp:291 >> + // FIXME: Decide what to call this file. > > I don't think we're going to change the name at this point. Let's just remove this comment. Ok.
Chris Dumez
Comment 11 2017-07-10 09:17:47 PDT
Build Bot
Comment 12 2017-07-10 09:25:56 PDT
Attachment 314987 [details] did not pass style-queue: ERROR: Source/WebKit2/UIProcess/Storage/ResourceLoadStatisticsStore.cpp:257: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit2/UIProcess/Storage/ResourceLoadStatisticsStore.h:74: Extra space before ( in function call [whitespace/parens] [4] Total errors found: 2 in 26 files If any of these errors are false positives, please file a bug against check-webkit-style.
WebKit Commit Bot
Comment 13 2017-07-10 10:09:42 PDT
Comment on attachment 314987 [details] Patch Clearing flags on attachment: 314987 Committed r219297: <http://trac.webkit.org/changeset/219297>
WebKit Commit Bot
Comment 14 2017-07-10 10:09:43 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.