WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
167536
Update DiagnosticLoggingClient::logDiagnosticMessageWithValue() to take in the value as a double
https://bugs.webkit.org/show_bug.cgi?id=167536
Summary
Update DiagnosticLoggingClient::logDiagnosticMessageWithValue() to take in th...
Chris Dumez
Reported
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.
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
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Chris Dumez
Comment 1
2017-01-27 20:14:06 PST
Created
attachment 299992
[details]
Patch
Darin Adler
Comment 2
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.
Chris Dumez
Comment 3
2017-01-30 10:08:27 PST
Created
attachment 300119
[details]
Patch
WebKit Commit Bot
Comment 4
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
>
WebKit Commit Bot
Comment 5
2017-01-30 10:46:51 PST
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.
Top of Page
Format For Printing
XML
Clone This Bug