Skip to content
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

Add FXIOS-10638 [ToS] Firefox iOS: Use the correct Terms of Service and Privacy Notice URLs in ToSViewController #23450

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ class TermsOfServiceViewController: UIViewController, Themeable {
static let distanceBetweenViews = 2 * margin
}

struct Links {
static let termsOfService = "https://www.mozilla.org/about/legal/terms/firefox/"
static let privacyNotice = "https://www.mozilla.org/privacy/firefox/"
}

// MARK: - Properties
var windowUUID: WindowUUID
var themeManager: ThemeManager
Expand Down Expand Up @@ -227,14 +232,12 @@ class TermsOfServiceViewController: UIViewController, Themeable {
// MARK: - Button actions
@objc
private func presentTermsOfService(_ gesture: UIGestureRecognizer) {
// TODO: FXIOS-10638 Firefox iOS: Use the correct Terms of Service and Privacy Notice URLs in ToSViewController
presentLink(with: nil)
presentLink(with: URL(string: Links.termsOfService))
}

@objc
private func presentPrivacyNotice(_ gesture: UIGestureRecognizer) {
// TODO: FXIOS-10638 Firefox iOS: Use the correct Terms of Service and Privacy Notice URLs in ToSViewController
presentLink(with: nil)
presentLink(with: URL(string: Links.privacyNotice))
}

@objc
Expand Down