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

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

Issue 2249773002: Scan card holder name. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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..1af9aea0fc1318d7c6b29c16b91db1ddf5031bdc 100644
--- a/components/autofill/core/browser/credit_card.cc
+++ b/components/autofill/core/browser/credit_card.cc
@@ -93,10 +93,12 @@ CreditCard::CreditCard(const std::string& guid, const std::string& origin)
expiration_year_(0),
server_status_(OK) {}
-CreditCard::CreditCard(const base::string16& card_number,
+CreditCard::CreditCard(const base::string16& card_holder_name,
+ const base::string16& card_number,
int expiration_month,
int expiration_year)
: CreditCard() {
+ name_on_card_ = card_holder_name;
SetNumber(card_number);
SetExpirationMonth(expiration_month);
SetExpirationYear(expiration_year);

Powered by Google App Engine
This is Rietveld 408576698