diff options
author | thomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-08 13:43:51 +0000 |
---|---|---|
committer | thomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-08 13:43:51 +0000 |
commit | a39aa53a7acabb03a86a5be5c663d6ae47215440 (patch) | |
tree | e304aa2f39c6103bf75d151c41730f43d9111b1a /chrome/browser/autofill/credit_card.h | |
parent | a5e04eafb781ce5739ab08398bc7ded7ed512116 (diff) | |
download | chromium_src-a39aa53a7acabb03a86a5be5c663d6ae47215440.zip chromium_src-a39aa53a7acabb03a86a5be5c663d6ae47215440.tar.gz chromium_src-a39aa53a7acabb03a86a5be5c663d6ae47215440.tar.bz2 |
Backing this out to see if it fixes the failures on the two windows bots (landed about when they started).
Revert 49030 - AutoFill: Don't save credit card numbers from Autocomplete to the WebDB.
BUG=8026
TEST=AutocompleteHistoryManagerTest
Review URL: http://codereview.chromium.org/2676003
TBR=jhawkins@chromium.org
Review URL: http://codereview.chromium.org/2748002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49164 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autofill/credit_card.h')
-rw-r--r-- | chrome/browser/autofill/credit_card.h | 7 |
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; |