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

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

Issue 2871873003: [Payments] Fix up field widths in desktop editors. (Closed)
Patch Set: 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 9ac6c8d8afaf9c6f2962ba3a8da63baea0554c08..d1fbbfb73369bec65096fd7b0117840cf43b27eb 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
@@ -43,19 +43,19 @@ ContactInfoEditorViewController::GetFieldDefinitions() {
fields.push_back(EditorField(
autofill::NAME_FULL,
l10n_util::GetStringUTF16(IDS_PAYMENTS_NAME_FIELD_IN_CONTACT_DETAILS),
- EditorField::LengthHint::HINT_LONG, /*required=*/true));
+ EditorField::LengthHint::HINT_SHORT, /*required=*/true));
}
if (spec()->request_payer_phone()) {
fields.push_back(EditorField(
autofill::PHONE_HOME_WHOLE_NUMBER,
l10n_util::GetStringUTF16(IDS_PAYMENTS_PHONE_FIELD_IN_CONTACT_DETAILS),
- EditorField::LengthHint::HINT_LONG, /*required=*/true));
+ EditorField::LengthHint::HINT_SHORT, /*required=*/true));
}
if (spec()->request_payer_email()) {
fields.push_back(EditorField(
autofill::EMAIL_ADDRESS,
l10n_util::GetStringUTF16(IDS_PAYMENTS_EMAIL_FIELD_IN_CONTACT_DETAILS),
- EditorField::LengthHint::HINT_LONG, /*required=*/true));
+ EditorField::LengthHint::HINT_SHORT, /*required=*/true));
}
return fields;
}

Powered by Google App Engine
This is Rietveld 408576698