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

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

Issue 1867523003: [Autofill] Suggest expired credit cards last. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Refactored CC suggestions to use IsExpired 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 e15c79fc20f7ee4f1108a66414e31e93c10eeddd..fcf4671abdb6355c3d77434676cfeb0380b7f63a 100644
--- a/components/autofill/core/browser/credit_card.h
+++ b/components/autofill/core/browser/credit_card.h
@@ -196,6 +196,9 @@ class CreditCard : public AutofillDataModel {
const std::string& app_locale,
int* num);
+ // Returns whether the credit card is expired base on the specified |time|.
+ bool IsExpired(base::Time::Exploded time) const;
+
private:
// FormGroup:
void GetSupportedTypes(ServerFieldTypeSet* supported_types) const override;

Powered by Google App Engine
This is Rietveld 408576698