WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
140701
Simplify DiagnosticLoggingClient call sites
https://bugs.webkit.org/show_bug.cgi?id=140701
Summary
Simplify DiagnosticLoggingClient call sites
Chris Dumez
Reported
2015-01-20 16:26:31 PST
Simplify DiagnosticLoggingClient call sites by: - Moving the Settings::diagnosticLoggingEnabled() check inside the MainFrame::diagnosticLoggingClient() getter - Having MainFrame::diagnosticLoggingClient() return a reference instead of a pointer (returning a dummy client if necessary) Otherwise, each call site needs to both check the setting and do a null-check on the client which is a bit annoying.
Attachments
Patch
(16.73 KB, patch)
2015-01-20 16:30 PST
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Chris Dumez
Comment 1
2015-01-20 16:30:05 PST
Created
attachment 245033
[details]
Patch
Andreas Kling
Comment 2
2015-01-20 17:31:22 PST
Comment on
attachment 245033
[details]
Patch r=me
WebKit Commit Bot
Comment 3
2015-01-20 18:16:42 PST
Comment on
attachment 245033
[details]
Patch Clearing flags on attachment: 245033 Committed
r178794
: <
http://trac.webkit.org/changeset/178794
>
WebKit Commit Bot
Comment 4
2015-01-20 18:16:48 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