Bug 231060

Summary: Implement missing functions in PrivateClickMeasurementDaemonClient
Product: WebKit Reporter: Alex Christensen <achristensen>
Component: New BugsAssignee: Alex Christensen <achristensen>
Status: RESOLVED FIXED    
Severity: Normal CC: cdumez, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=231257
Attachments:
Description Flags
Patch
none
Patch
none
Patch
none
Patch
none
Patch
none
Patch cdumez: review+

Description Alex Christensen 2021-09-30 20:53:08 PDT
Implement missing functions in PrivateClickMeasurementDaemonClient
Comment 1 Alex Christensen 2021-09-30 20:54:31 PDT
Created attachment 439817 [details]
Patch
Comment 2 Alex Christensen 2021-10-01 09:28:37 PDT
Created attachment 439867 [details]
Patch
Comment 3 Alex Christensen 2021-10-04 17:23:08 PDT
Created attachment 440125 [details]
Patch
Comment 4 Alex Christensen 2021-10-04 17:25:01 PDT
Created attachment 440126 [details]
Patch
Comment 5 Alex Christensen 2021-10-04 17:41:57 PDT
Created attachment 440127 [details]
Patch
Comment 6 Alex Christensen 2021-10-04 22:54:41 PDT
Created attachment 440159 [details]
Patch
Comment 7 Chris Dumez 2021-10-05 11:02:14 PDT
Comment on attachment 440159 [details]
Patch

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

> Source/WebKit/NetworkProcess/PrivateClickMeasurement/PrivateClickMeasurementConnection.h:63
> +    explicit ConnectionToMachService(CString&& machServiceName, NetworkSession&);

Probably don’t need the explicit.

> Source/WebKit/Shared/EntryPointUtilities/Cocoa/Daemon/PCMDaemonConnectionSet.mm:47
> +    m_connections.set(connection, DebugModeEnabled::No);

add() is more efficient and should suffice given that you don’t expect the key to exist.
Comment 8 Alex Christensen 2021-10-05 11:12:42 PDT
Done.
http://trac.webkit.org/r283559
Comment 9 Radar WebKit Bug Importer 2021-10-05 11:13:21 PDT
<rdar://problem/83895136>