Bug 167536 - Update DiagnosticLoggingClient::logDiagnosticMessageWithValue() to take in the value as a double
Summary: Update DiagnosticLoggingClient::logDiagnosticMessageWithValue() to take in th...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-27 16:59 PST by Chris Dumez
Modified: 2017-01-30 10:46 PST (History)
3 users (show)

See Also:


Attachments
Patch (31.48 KB, patch)
2017-01-27 20:14 PST, Chris Dumez
no flags Details | Formatted Diff | Diff
Patch (31.58 KB, patch)
2017-01-30 10:08 PST, Chris Dumez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Dumez 2017-01-27 16:59:24 PST
Update DiagnosticLoggingClient::logDiagnosticMessageWithValue() to take in the value as a double instead of a string. The value needs to be numeric and the current API is error-prone.
Comment 1 Chris Dumez 2017-01-27 20:14:06 PST
Created attachment 299992 [details]
Patch
Comment 2 Darin Adler 2017-01-29 19:51:14 PST
Comment on attachment 299992 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=299992&action=review

> Source/WebCore/loader/EmptyClients.cpp:119
> +    void logDiagnosticMessageWithValue(const String&, const String&, double value, unsigned significantFigures, ShouldSample) final { UNUSED_PARAM(value); UNUSED_PARAM(significantFigures); }

I like to use commented out names rather than UNUSED_PARAM in cases like this. But also, in EmptyClients.cpp, no need for the names at all.

> Source/WebKit2/UIProcess/WebPageProxy.h:165
> +enum class ShouldSample;

We normally would put each type of identifier in a separate paragraph rather than putting enum class inside a list of structs.
Comment 3 Chris Dumez 2017-01-30 10:08:27 PST
Created attachment 300119 [details]
Patch
Comment 4 WebKit Commit Bot 2017-01-30 10:46:45 PST
Comment on attachment 300119 [details]
Patch

Clearing flags on attachment: 300119

Committed r211376: <http://trac.webkit.org/changeset/211376>
Comment 5 WebKit Commit Bot 2017-01-30 10:46:51 PST
All reviewed patches have been landed.  Closing bug.