Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(25)

Issue 2952673002: [Payments] Format and validate phone number according to selected country in address editor (Closed)

Created:
3 years, 6 months ago by gogerald1
Modified:
3 years, 6 months ago
CC:
chromium-reviews, rouslan+payments_chromium.org, rouslan+autofill_chromium.org, rogerm+autofillwatch_chromium.org, sebsg+autofillwatch_chromium.org, browser-components-watch_chromium.org, gogerald+paymentswatch_chromium.org, mahmadi+paymentswatch_chromium.org, mathp+autofillwatch_chromium.org, agrieve+watch_chromium.org, vabr+watchlistautofill_chromium.org, estade+watch_chromium.org, sebsg+paymentswatch_chromium.org, wuandy1
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Format 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)
gogerald1
Hi rouslan@, ptal,
3 years, 6 months ago (2017-06-20 18:32:00 UTC) #6
gogerald1
3 years, 6 months ago (2017-06-20 18:36:04 UTC) #7
please use gerrit instead
Before I start reviewing, please update the CL description to include the following information: 1) ...
3 years, 6 months ago (2017-06-20 18:36:55 UTC) #8
please use gerrit instead
https://codereview.chromium.org/2952673002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/payments/AddressEditor.java File chrome/android/java/src/org/chromium/chrome/browser/payments/AddressEditor.java (right): https://codereview.chromium.org/2952673002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/payments/AddressEditor.java#newcode62 chrome/android/java/src/org/chromium/chrome/browser/payments/AddressEditor.java:62: mPhoneValidator = new PhoneNumberValidator(); Both validator and phone number ...
3 years, 6 months ago (2017-06-20 18:48:29 UTC) #15
gogerald1
another look? https://codereview.chromium.org/2952673002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/payments/AddressEditor.java File chrome/android/java/src/org/chromium/chrome/browser/payments/AddressEditor.java (right): https://codereview.chromium.org/2952673002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/payments/AddressEditor.java#newcode62 chrome/android/java/src/org/chromium/chrome/browser/payments/AddressEditor.java:62: mPhoneValidator = new PhoneNumberValidator(); On 2017/06/20 18:48:29, ...
3 years, 6 months ago (2017-06-20 19:12:40 UTC) #18
please use gerrit instead
lgtm
3 years, 6 months ago (2017-06-20 19:48:03 UTC) #20
gogerald1
Thanks, sending to CQ, note that phone number is still formatted and validated according to ...
3 years, 6 months ago (2017-06-20 20:25:06 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2952673002/60001
3 years, 6 months ago (2017-06-20 20:25:46 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/468973)
3 years, 6 months ago (2017-06-20 20:41:41 UTC) #26
gogerald1
Hi sebsg@, ptal of the changes in chrome/browser/autofill/android/phone_number_util_android.cc
3 years, 6 months ago (2017-06-20 20:45:33 UTC) #28
sebsg
lgtm
3 years, 6 months ago (2017-06-21 13:46:27 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2952673002/60001
3 years, 6 months ago (2017-06-21 13:47:05 UTC) #31
commit-bot: I haz the power
3 years, 6 months ago (2017-06-21 13:51:57 UTC) #34
Message was sent while issue was closed.
Committed patchset #3 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/bcfccfe7b5b9b3acdda8f64d1dea...

Powered by Google App Engine
This is Rietveld 408576698