Don't rely on V1ToV2Map
to get device region when timezone data is fetched
#44365
Closed
1 of 6 tasks
Labels
Milestone
Description
This is f/u issue for #44181
Whenever timezone data is fetched, we set default region(
device region
) based on newly fetched timezone.As region name from timezone data and region list data are different for same region, we tried to map timezone's region name to region list's region name. This approach is not extensible if new region is added to timezone and uses different name with region list. When it happens, we need to update map data again.
Instead of doing this, we could use ISO name. By getting current region's country iso code, we could find region name from region list as each region list has iso code.
Steps to reproduce
Actual result
default region is same with previous version
This issue doesn't have behavioral changes. So Actual result and expected result are same.
Expected result
default region is same with previous version
Reproduces how often
Easily reproduced
Brave version (brave://version info)
1.78.9 Chromium: 134.0.6998.39 (Official Build) nightly (x86_64)
Channel information
Reproducibility
Miscellaneous information
cc @bsclifton @deeppandya
The text was updated successfully, but these errors were encountered: