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

Unified Diff: chrome/browser/ui/views/payments/cvc_unmask_view_controller.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 | « no previous file | chrome/browser/ui/views/payments/cvc_unmask_view_controller_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/payments/cvc_unmask_view_controller.cc
diff --git a/chrome/browser/ui/views/payments/cvc_unmask_view_controller.cc b/chrome/browser/ui/views/payments/cvc_unmask_view_controller.cc
index 1071cc242ad79058c45cfb7df4aef06441285e55..6ecb761ad939121f65e3827e92cd244b338b71c5 100644
--- a/chrome/browser/ui/views/payments/cvc_unmask_view_controller.cc
+++ b/chrome/browser/ui/views/payments/cvc_unmask_view_controller.cc
@@ -109,7 +109,8 @@ void CvcUnmaskViewController::ShowUnmaskPrompt(
void CvcUnmaskViewController::OnUnmaskVerificationResult(
autofill::AutofillClient::PaymentsRpcResult result) {
- // TODO(anthonyvd): Show result.
+ // TODO(crbug.com/716020): Handle FullCardRequest errors with more
+ // granularity and display an error in the UI.
}
base::string16 CvcUnmaskViewController::GetSheetTitle() {
@@ -183,6 +184,10 @@ void CvcUnmaskViewController::ButtonPressed(views::Button* sender,
case static_cast<int>(Tags::CONFIRM_TAG):
CvcConfirmed();
break;
+ case static_cast<int>(PaymentRequestCommonTags::BACK_BUTTON_TAG):
+ unmask_delegate_->OnUnmaskPromptClosed();
+ dialog()->GoBack();
+ break;
default:
PaymentRequestSheetController::ButtonPressed(sender, event);
}
« no previous file with comments | « no previous file | chrome/browser/ui/views/payments/cvc_unmask_view_controller_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698