From 6e277c36ed7f89dbf4f6fe20fe8846feb7631046 Mon Sep 17 00:00:00 2001 From: Alexandru Farcasanu Date: Thu, 28 Nov 2024 15:21:45 +0200 Subject: [PATCH] FXIOS-10638 Firefox iOS: Use the correct Terms of Service and Privacy Notice URLs in ToSViewController --- .../Views/TermsOfServiceViewController.swift | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/firefox-ios/Client/Frontend/Onboarding/Views/TermsOfServiceViewController.swift b/firefox-ios/Client/Frontend/Onboarding/Views/TermsOfServiceViewController.swift index 47b67acb30ba..1dbf9fa1ed2b 100644 --- a/firefox-ios/Client/Frontend/Onboarding/Views/TermsOfServiceViewController.swift +++ b/firefox-ios/Client/Frontend/Onboarding/Views/TermsOfServiceViewController.swift @@ -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 @@ -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