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

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

Issue 772253003: Create an autofill Suggestion class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 6 years 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 85c50edab6087592f4a4e8be13fabc362f97d060..19603b828aae92fdab5bf1909f1f2bf19cee1bfa 100644
--- a/components/autofill/core/browser/credit_card.cc
+++ b/components/autofill/core/browser/credit_card.cc
@@ -127,6 +127,15 @@ CreditCard::CreditCard(const base::string16& card_number,
SetExpirationYear(expiration_year);
}
+CreditCard::CreditCard(const std::string& wallet_id, RecordType type)
+ : AutofillDataModel(std::string(), std::string()),
+ record_type_(type),
+ type_(kGenericCard),
+ expiration_month_(0),
+ expiration_year_(0),
+ wallet_id_(wallet_id) {
+}
+
CreditCard::CreditCard()
: AutofillDataModel(base::GenerateGUID(), std::string()),
record_type_(LOCAL_CARD),
« no previous file with comments | « components/autofill/core/browser/credit_card.h ('k') | components/autofill/core/browser/personal_data_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698