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

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

Issue 1926553002: Prompt for expiration date for local cards. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Simplify the test cases Created 4 years, 8 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 606fc1f45d84cdd332d02a372cf8f6499e1f65fe..56f6ce62c9e02c65ec7eabd041b3cee75071dcb7 100644
--- a/components/autofill/core/browser/credit_card.h
+++ b/components/autofill/core/browser/credit_card.h
@@ -195,6 +195,9 @@ class CreditCard : public AutofillDataModel {
// Returns whether the credit card is expired based on |current_time|.
bool IsExpired(const base::Time& current_time) const;
+ // Whether the card expiration date should be updated.
+ bool ShouldUpdateExpiration(const base::Time& current_time) const;
+
private:
// FormGroup:
void GetSupportedTypes(ServerFieldTypeSet* supported_types) const override;

Powered by Google App Engine
This is Rietveld 408576698