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

Unified Diff: components/autofill/browser/credit_card.h

Issue 17099006: Validate saved credit card number in interactive autocomplete (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Move credit card validation to credit card class Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/autofill/browser/credit_card.h
diff --git a/components/autofill/browser/credit_card.h b/components/autofill/browser/credit_card.h
index 315d560e7eec8bf676ea8c843c23f89604577fc7..ab7d77d72a8d063b84bc0b208c45a1b674d5f70d 100644
--- a/components/autofill/browser/credit_card.h
+++ b/components/autofill/browser/credit_card.h
@@ -106,6 +106,10 @@ class CreditCard : public AutofillDataModel {
// Returns true if all field types have valid values set.
bool IsComplete() const;
+ // Returns true if all field types have valid values set and the card is not
+ // expired.
+ bool IsValid() const;
+
// Returns the credit card number.
const base::string16& number() const { return number_; }

Powered by Google App Engine
This is Rietveld 408576698