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

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

Issue 2249773002: Scan card holder name. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Pass CreditCard, don't alter the constructor. 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/autofill_external_delegate.cc
diff --git a/components/autofill/core/browser/autofill_external_delegate.cc b/components/autofill/core/browser/autofill_external_delegate.cc
index fc526b6581e4bc92ec90b208ed1e2da802585d87..92d27e17ab07c3b7bd5559a383588f0eedde2ad4 100644
--- a/components/autofill/core/browser/autofill_external_delegate.cc
+++ b/components/autofill/core/browser/autofill_external_delegate.cc
@@ -267,14 +267,9 @@ base::WeakPtr<AutofillExternalDelegate> AutofillExternalDelegate::GetWeakPtr() {
return weak_ptr_factory_.GetWeakPtr();
}
-void AutofillExternalDelegate::OnCreditCardScanned(
- const base::string16& card_number,
- int expiration_month,
- int expiration_year) {
- manager_->FillCreditCardForm(
- query_id_, query_form_, query_field_,
- CreditCard(card_number, expiration_month, expiration_year),
- base::string16());
+void AutofillExternalDelegate::OnCreditCardScanned(const CreditCard& card) {
+ manager_->FillCreditCardForm(query_id_, query_form_, query_field_, card,
+ base::string16());
}
void AutofillExternalDelegate::FillAutofillFormData(int unique_id,

Powered by Google App Engine
This is Rietveld 408576698