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

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

Issue 1808613004: Don't ever attempt to upload credit cards whose numbers match. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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 73f138c0cde376c37a2164850cc59fa453e30b07..e15c79fc20f7ee4f1108a66414e31e93c10eeddd 100644
--- a/components/autofill/core/browser/credit_card.h
+++ b/components/autofill/core/browser/credit_card.h
@@ -155,6 +155,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