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

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

Issue 2254983002: Remove test-only constructor from CreditCard. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use default constructor and nix guid include Created 4 years, 4 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.cc
diff --git a/components/autofill/core/browser/credit_card.cc b/components/autofill/core/browser/credit_card.cc
index 9cf49dc34fdddb1935d147c523d310a88ff94c9c..27700bed98a4589728ba09e5e8371fec137d7a08 100644
--- a/components/autofill/core/browser/credit_card.cc
+++ b/components/autofill/core/browser/credit_card.cc
@@ -93,15 +93,6 @@ CreditCard::CreditCard(const std::string& guid, const std::string& origin)
expiration_year_(0),
server_status_(OK) {}
-CreditCard::CreditCard(const base::string16& card_number,
- int expiration_month,
- int expiration_year)
- : CreditCard() {
- SetNumber(card_number);
- SetExpirationMonth(expiration_month);
- SetExpirationYear(expiration_year);
-}
-
CreditCard::CreditCard(RecordType type, const std::string& server_id)
: CreditCard() {
DCHECK(type == MASKED_SERVER_CARD || type == FULL_SERVER_CARD);
« no previous file with comments | « components/autofill/core/browser/credit_card.h ('k') | components/autofill/core/browser/credit_card_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698