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

Unified Diff: chrome/browser/ui/views/payments/contact_info_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/contact_info_editor_view_controller.cc
diff --git a/chrome/browser/ui/views/payments/contact_info_editor_view_controller.cc b/chrome/browser/ui/views/payments/contact_info_editor_view_controller.cc
index a9cede0f9753ea8be473b43fae32fdcd41e534e3..9ac6c8d8afaf9c6f2962ba3a8da63baea0554c08 100644
--- a/chrome/browser/ui/views/payments/contact_info_editor_view_controller.cc
+++ b/chrome/browser/ui/views/payments/contact_info_editor_view_controller.cc
@@ -131,6 +131,11 @@ void ContactInfoEditorViewController::PopulateProfile(
profile->set_origin(autofill::kSettingsOrigin);
}
+bool ContactInfoEditorViewController::GetSheetId(DialogViewID* sheet_id) {
+ *sheet_id = DialogViewID::CONTACT_INFO_EDITOR_SHEET;
+ return true;
+}
+
ContactInfoEditorViewController::ContactInfoValidationDelegate::
ContactInfoValidationDelegate(const EditorField& field,
const std::string& locale,

Powered by Google App Engine
This is Rietveld 408576698