Bug 174301

Summary: Further WebResourceLoadStatisticsStore / ResourceLoadStatisticsStore clean up
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: WebKit2Assignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, buildbot, commit-queue
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Patch
none
Patch
none
Patch none

Description Chris Dumez 2017-07-09 14:35:03 PDT
Further WebResourceLoadStatisticsStore / ResourceLoadStatisticsStore clean up.
Comment 1 Chris Dumez 2017-07-09 14:40:35 PDT
Created attachment 314953 [details]
Patch
Comment 2 Build Bot 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.
Comment 3 Chris Dumez 2017-07-09 14:43:53 PDT
Created attachment 314954 [details]
Patch
Comment 4 Build Bot 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.
Comment 5 Chris Dumez 2017-07-09 15:00:46 PDT
Created attachment 314955 [details]
Patch
Comment 6 Build Bot 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.
Comment 7 Chris Dumez 2017-07-10 08:45:22 PDT
Created attachment 314983 [details]
Patch
Comment 8 Build Bot 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.
Comment 9 Brent Fulgham 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.
Comment 10 Chris Dumez 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.
Comment 11 Chris Dumez 2017-07-10 09:17:47 PDT
Created attachment 314987 [details]
Patch
Comment 12 Build Bot 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.
Comment 13 WebKit Commit Bot 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>
Comment 14 WebKit Commit Bot 2017-07-10 10:09:43 PDT
All reviewed patches have been landed.  Closing bug.