-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
macOS VPN: Add pixels to track VPN start and stop attempts through IPC #2622
Conversation
private func enableLoginItems() async throws -> Bool { | ||
guard try await featureVisibility.canStartVPN() else { | ||
// We shouldn't enable the menu app is the VPN feature is disabled. | ||
return false | ||
} | ||
|
||
try loginItemsManager.throwingEnableLoginItems(LoginItemsManager.networkProtectionLoginItems, log: .networkProtection) | ||
return true | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The diff looks a bit awful... the only change here is we're no longer ignoring errors when enabling login items.
...Go/NetworkProtection/AppTargets/DeveloperIDTarget/NetworkProtectionIPCTunnelController.swift
Outdated
Show resolved
Hide resolved
...Go/NetworkProtection/AppTargets/DeveloperIDTarget/NetworkProtectionIPCTunnelController.swift
Show resolved
Hide resolved
LocalPackages/PixelKit/Sources/PixelKitTestingUtilities/PixelKitMock.swift
Show resolved
Hide resolved
...Go/NetworkProtection/AppTargets/DeveloperIDTarget/NetworkProtectionIPCTunnelController.swift
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One small comment but non-blocking.
For transparency I'm adding a note of some changes I made after the review. Normally I'd ask for another review but most of the changes I'm doing here are after extensive testing of my own, and after adding more automated tests to cover additional cases. Summary of changes:
|
e562375
to
07d4ef1
Compare
07d4ef1
to
f37cc5f
Compare
f7db4c9
to
efb8598
Compare
Also rebased to 1.84.0 since I want info from these pixels sooner rather than later. |
#2622) Task/Issue URL: https://app.asana.com/0/1199230911884351/1207077286880106/f ## Description In macOS we don't have visibility on how often and how IPC start and stop attempts are failing for our tunnel. This PR adds pixels to track those attempts.
Task/Issue URL: https://app.asana.com/0/1199230911884351/1207077286880106/f
Description
In macOS we don't have visibility on how often and how IPC start and stop attempts are failing for our tunnel.
This PR adds pixels to track those attempts.
Testing
Internal references:
Pull Request Review Checklist
Software Engineering Expectations
Technical Design Template
Pull Request Documentation