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

Unified Diff: chrome/browser/ui/views/payments/credit_card_editor_view_controller.cc

Issue 2866443002: [Web Payments] Handle "Enter" accelerator when there's a primary action (Closed)
Patch Set: Add tests to sheets that handle the enter accelerator Created 3 years, 7 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: chrome/browser/ui/views/payments/credit_card_editor_view_controller.cc
diff --git a/chrome/browser/ui/views/payments/credit_card_editor_view_controller.cc b/chrome/browser/ui/views/payments/credit_card_editor_view_controller.cc
index 3c5535098e64281cb12b0d28bd15078d6f2e05ce..7f0e8941757553fee005973c409b04247162ea92 100644
--- a/chrome/browser/ui/views/payments/credit_card_editor_view_controller.cc
+++ b/chrome/browser/ui/views/payments/credit_card_editor_view_controller.cc
@@ -328,4 +328,9 @@ bool CreditCardEditorViewController::CreditCardValidationDelegate::
return is_required_valid;
}
+bool CreditCardEditorViewController::GetSheetId(DialogViewID* sheet_id) {
+ *sheet_id = DialogViewID::CREDIT_CARD_EDITOR_SHEET;
+ return true;
+}
+
} // namespace payments

Powered by Google App Engine
This is Rietveld 408576698