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

Unified Diff: components/autofill/core/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: Merge master 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/core/browser/credit_card.h
diff --git a/components/autofill/core/browser/credit_card.h b/components/autofill/core/browser/credit_card.h
index 217d07b91afd31264d22f4e7b221f510cc9ba549..9da67f8f428d8ca17c7b8613261c31006dc1afbb 100644
--- a/components/autofill/core/browser/credit_card.h
+++ b/components/autofill/core/browser/credit_card.h
@@ -107,6 +107,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_; }
« no previous file with comments | « chrome/browser/ui/autofill/data_model_wrapper_unittest.cc ('k') | components/autofill/core/browser/credit_card.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698