Skip to content

Commit

Permalink
Merge pull request #26746 from brave/update_trial_url_from_vpn_card
Browse files Browse the repository at this point in the history
Updated trial url from vpn card
  • Loading branch information
simonhong committed Nov 26, 2024
1 parent 613c1dd commit 6a11b8a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions browser/ui/brave_vpn/brave_vpn_controller.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@ void BraveVPNController::OpenVPNAccountPage() {
auto* browser = browser_view_->browser();
auto* profile = browser->profile();
auto* vpn_service = brave_vpn::BraveVpnServiceFactory::GetForProfile(profile);
const auto url =
brave_vpn::GetManageUrl(vpn_service->GetCurrentEnvironment());
ShowSingletonTab(browser, GURL(url));
auto url =
GURL(brave_vpn::GetManageUrl(vpn_service->GetCurrentEnvironment()));
GURL::Replacements replacements;
replacements.SetQueryStr("intent=checkout&product=vpn");
ShowSingletonTab(browser, url.ReplaceComponents(replacements));
}

BraveBrowserView* BraveVPNController::GetBraveBrowserView() {
Expand Down

0 comments on commit 6a11b8a

Please sign in to comment.