Skip to content

Commit

Permalink
Wire up NetP feature flags to the privacy config.
Browse files Browse the repository at this point in the history
  • Loading branch information
samsymons committed Dec 6, 2023
1 parent ea2df9f commit e5fac5c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Core/FeatureFlag.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,14 @@ public enum FeatureFlag: String {
extension FeatureFlag: FeatureFlagSourceProviding {
public var source: FeatureFlagSource {
switch self {
case .debugMenu, .sync, .appTrackingProtection, .networkProtection, .networkProtectionWaitlistAccess, .networkProtectionWaitlistActive:
case .debugMenu, .sync, .appTrackingProtection:
return .internalOnly
case .networkProtection:
return .remoteReleasable(.feature(.networkProtection))
case .networkProtectionWaitlistAccess:
return .remoteReleasable(.subfeature(NetworkProtectionSubfeature.waitlist))
case .networkProtectionWaitlistActive:
return .remoteReleasable(.subfeature(NetworkProtectionSubfeature.waitlistBetaActive))
case .autofillCredentialInjecting:
return .remoteReleasable(.subfeature(AutofillSubfeature.credentialsAutofill))
case .autofillCredentialsSaving:
Expand Down

0 comments on commit e5fac5c

Please sign in to comment.