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

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

Issue 2254353002: Prompt for CVC in credit card assist. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix tests. 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_assistant.cc
diff --git a/components/autofill/core/browser/autofill_assistant.cc b/components/autofill/core/browser/autofill_assistant.cc
index 982dd0591716353cf0a97e28c10aa2e7c2c85d75..7eacdb6277cd656ced33a2af9a448bc66f8d29a8 100644
--- a/components/autofill/core/browser/autofill_assistant.cc
+++ b/components/autofill/core/browser/autofill_assistant.cc
@@ -47,10 +47,18 @@ void AutofillAssistant::ShowAssistForCreditCard(const CreditCard& card) {
}
void AutofillAssistant::OnUserDidAcceptCreditCardFill(const CreditCard& card) {
- // TODO(crbug.com/630656): Trigger CVC dialog flow for card filling.
+ autofill_manager_->GetOrCreateFullCardRequest()->GetFullCard(
+ card, AutofillClient::UNMASK_FOR_AUTOFILL,
+ weak_ptr_factory_.GetWeakPtr());
+}
+
+void AutofillAssistant::OnFullCardDetails(const CreditCard& card,
+ const base::string16& cvc) {
autofill_manager_->FillCreditCardForm(kNoQueryId, *credit_card_form_data_,
credit_card_form_data_->fields[0], card,
- base::string16());
+ cvc);
}
+void AutofillAssistant::OnFullCardError() {}
+
} // namespace autofill

Powered by Google App Engine
This is Rietveld 408576698