| Index: components/autofill/core/browser/validation.cc
|
| diff --git a/components/autofill/core/browser/validation.cc b/components/autofill/core/browser/validation.cc
|
| index a063ab2fa004e3227bc6e46e16f91a82282148a8..b0f0a2a72bce6e1a662daa0a1a389bada153de34 100644
|
| --- a/components/autofill/core/browser/validation.cc
|
| +++ b/components/autofill/core/browser/validation.cc
|
| @@ -61,11 +61,6 @@ bool IsValidCreditCardNumber(const base::string16& text) {
|
| if (type == kGenericCard && (number.size() < 12 || number.size() > 19))
|
| return false;
|
|
|
| - // Unlike all the other supported types, UnionPay cards lack Luhn checksum
|
| - // validation.
|
| - if (type == kUnionPay)
|
| - return true;
|
| -
|
| // Use the Luhn formula [3] to validate the number.
|
| // [3] http://en.wikipedia.org/wiki/Luhn_algorithm
|
| int sum = 0;
|
|
|