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

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

Issue 1818403003: Don't ever attempt to upload credit cards whose numbers match. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2661
Patch Set: Created 4 years, 9 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
« no previous file with comments | « no previous file | components/autofill/core/browser/credit_card.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 6c077638afc7f68a75d36c31d765373e09e12d4d..2eff627bcc9c0dedec27abb0c69dcd935c2a3c43 100644
--- a/components/autofill/core/browser/credit_card.h
+++ b/components/autofill/core/browser/credit_card.h
@@ -152,6 +152,10 @@ class CreditCard : public AutofillDataModel {
// Determines if |this| is a local version of the server card |other|.
bool IsLocalDuplicateOfServerCard(const CreditCard& other) const;
+ // Determines if |this| has the same number as |other|. If either is a masked
+ // server card, compares the last four digits only.
+ bool HasSameNumberAs(const CreditCard& other) const;
+
// Equality operators compare GUIDs, origins, and the contents.
// Usage metadata (use count, use date, modification date) are NOT compared.
bool operator==(const CreditCard& credit_card) const;
« no previous file with comments | « no previous file | components/autofill/core/browser/credit_card.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698