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

Unified Diff: components/payments/core/autofill_payment_instrument.cc

Issue 2844293002: [Payments] Handle clicking back on the CVC unmask dialog (Closed)
Patch Set: Test Created 3 years, 8 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
« no previous file with comments | « chrome/browser/ui/views/payments/cvc_unmask_view_controller_browsertest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/payments/core/autofill_payment_instrument.cc
diff --git a/components/payments/core/autofill_payment_instrument.cc b/components/payments/core/autofill_payment_instrument.cc
index e74b3892c589d144edd00bd205dbdfd57c92e12c..83ceebca9fe3d0b8a38d347f60d22a83e3fef3f8 100644
--- a/components/payments/core/autofill_payment_instrument.cc
+++ b/components/payments/core/autofill_payment_instrument.cc
@@ -113,7 +113,9 @@ void AutofillPaymentInstrument::OnFullCardRequestSucceeded(
}
void AutofillPaymentInstrument::OnFullCardRequestFailed() {
- // TODO(anthonyvd): Do something with the error.
+ // The user may have cancelled the unmask or something has gone wrong (e.g.,
+ // the network request failed). In all cases, reset the |delegate_| so another
+ // request can start.
delegate_ = nullptr;
}
« no previous file with comments | « chrome/browser/ui/views/payments/cvc_unmask_view_controller_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698