DescriptionFormat and validate phone number according to selected country in address editor
This CL is based on https://codereview.chromium.org/2924513002/
This CL changes the behavior of formatting and validating phone number
in address editor if the input number is not starts with '+'.
Previously, the phone number is formatted and validated according
to region code deduced from the application locale.
This causes below issue as described in the bug:
(1) Switch phone to French (Canada)
(2) Try to enter a canadian address in the Payment Request editor
(android)
(3) Phone formatting requires +33 which is in France
After this patch, the phone number is formatted and validated
according to the region code deduced from the selected country code
in the address editor. This solves above problem.
BUG=723769
Review-Url: https://codereview.chromium.org/2952673002
Cr-Commit-Position: refs/heads/master@{#481193}
Committed: https://chromium.googlesource.com/chromium/src/+/bcfccfe7b5b9b3acdda8f64d1dea9614e2d8f39a
Patch Set 1 #
Total comments: 12
Patch Set 2 : address comments #Patch Set 3 : Fix tests #Messages
Total messages: 34 (21 generated)
|