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

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: addressed comments 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
« no previous file with comments | « no previous file | chrome/browser/ui/views/payments/credit_card_editor_view_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2fb8d327c93f6d6788f472098d623cf1d248d87a..926ef216db69fc47b04cfd01ad18692a7c7193df 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
@@ -40,19 +40,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;
}
« no previous file with comments | « no previous file | chrome/browser/ui/views/payments/credit_card_editor_view_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698