-
Notifications
You must be signed in to change notification settings - Fork 871
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
Advanced server selection follow up android #25604
Advanced server selection follow up android #25604
Conversation
@@ -94,6 +96,9 @@ mojom::RegionPtr GetRegionFromValueWithoutCity(const base::Value::Dict& value) { | |||
if (auto* name_pretty = value.FindString(brave_vpn::kRegionNamePrettyKey)) { | |||
region->name_pretty = *name_pretty; | |||
} | |||
if (auto* country = value.FindString(brave_vpn::kRegionCountryKey)) { | |||
region->country = *country; |
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.
Curious what this data has and destkop also needs changes with this new property?
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.
It was a suggestion from the guardian team to persist the country and continent to use it for region selection to avoid future migration.
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.
country
has country name? and then maybe desktop also need to use this property for country name instead of name_pretty
?
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.
Ah, ok. I saw it from region-list.ts
. It has country name.
I'll f/u to replace it with namePretty
on desktop.
cacbacf
to
80aa94e
Compare
A Storybook has been deployed to preview UI for the latest push |
A Storybook has been deployed to preview UI for the latest push |
@@ -131,12 +131,18 @@ public void prepareMenu(Menu menu, AppMenuHandler handler) { | |||
menu.findItem(R.id.request_vpn_location_row_menu_id).getSubMenu(); | |||
MenuItem vpnLocationSubMenuItem = | |||
vpnLocationSubMenu.findItem(R.id.request_vpn_location_id); | |||
String isoCode = BraveVpnPrefUtils.getRegionIsoCode(); | |||
String country = | |||
(!BraveVpnPrefUtils.getRegionCountry().equals("") |
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.
why are there brackets at the beginning and at the end?
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.
++
Resolve PR comment
80aa94e
to
32acb34
Compare
[puLL-Merge] - brave/brave-core@25604 DescriptionThis PR makes significant changes to the Brave VPN functionality, particularly in how server regions are handled and displayed. It modifies several Java files in the Android app and updates the data model for VPN regions. ChangesChanges
Possible Issues
Security HotspotsNone identified. The changes appear to be primarily related to data structure and UI updates, without introducing apparent security risks. |
A Storybook has been deployed to preview UI for the latest push |
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.
components/brave_vpn/
++
Uplift of #25604 (squashed) to beta
Resolves brave/brave-browser#41106
Resolves brave/brave-browser#41477
Submitter Checklist:
QA/Yes
orQA/No
;release-notes/include
orrelease-notes/exclude
;OS/...
) to the associated issuenpm run test -- brave_browser_tests
,npm run test -- brave_unit_tests
wikinpm run presubmit
wiki,npm run gn_check
,npm run tslint
git rebase master
(if needed)Reviewer Checklist:
gn
After-merge Checklist:
changes has landed on
Test Plan: