summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autofill/credit_card.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/autofill/credit_card.h')
-rw-r--r--chrome/browser/autofill/credit_card.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/chrome/browser/autofill/credit_card.h b/chrome/browser/autofill/credit_card.h
index 50bfa3a..4c16ec7 100644
--- a/chrome/browser/autofill/credit_card.h
+++ b/chrome/browser/autofill/credit_card.h
@@ -58,10 +58,6 @@ class CreditCard : public FormGroup {
bool operator!=(const CreditCard& creditcard) const;
void set_label(const string16& label) { label_ = label; }
- // Returns true if |value| is a credit card number. Uses the Luhn formula to
- // validate the number.
- static bool IsCreditCardNumber(const string16& text);
-
private:
// The month and year are zero if not present.
int Expiration4DigitYear() const { return expiration_year_; }
@@ -111,6 +107,9 @@ class CreditCard : public FormGroup {
// case-insensitive.
bool IsNameOnCard(const string16& text) const;
+ // Uses the Luhn formula to validate the credit card number in |text|.
+ static bool IsCreditCardNumber(const string16& text);
+
// Returns true if |text| matches the expiration month of the card.
bool IsExpirationMonth(const string16& text) const;