| Index: chrome/browser/ui/views/payments/shipping_address_editor_view_controller.cc
|
| diff --git a/chrome/browser/ui/views/payments/shipping_address_editor_view_controller.cc b/chrome/browser/ui/views/payments/shipping_address_editor_view_controller.cc
|
| index 8c9983bcee3298e066875947558fd8ed396a6bcb..4595f6c0643e8ae96795ff09e824b28d994ee555 100644
|
| --- a/chrome/browser/ui/views/payments/shipping_address_editor_view_controller.cc
|
| +++ b/chrome/browser/ui/views/payments/shipping_address_editor_view_controller.cc
|
| @@ -264,11 +264,11 @@ void ShippingAddressEditorViewController::UpdateEditorFields() {
|
| NOTREACHED();
|
| return;
|
| }
|
| - EditorField::LengthHint length_hint = EditorField::LengthHint::HINT_LONG;
|
| - if (field_length == autofill::kShortField)
|
| - length_hint = EditorField::LengthHint::HINT_SHORT;
|
| + EditorField::LengthHint length_hint = EditorField::LengthHint::HINT_SHORT;
|
| + if (field_length == autofill::kLongField)
|
| + length_hint = EditorField::LengthHint::HINT_LONG;
|
| else
|
| - DCHECK_EQ(autofill::kLongField, field_length);
|
| + DCHECK_EQ(autofill::kShortField, field_length);
|
| autofill::ServerFieldType server_field_type =
|
| GetFieldTypeFromString(field_type);
|
| EditorField::ControlType control_type =
|
| @@ -288,7 +288,7 @@ void ShippingAddressEditorViewController::UpdateEditorFields() {
|
| autofill::ADDRESS_HOME_COUNTRY,
|
| l10n_util::GetStringUTF16(
|
| IDS_LIBADDRESSINPUT_COUNTRY_OR_REGION_LABEL),
|
| - EditorField::LengthHint::HINT_LONG, /*required=*/true,
|
| + EditorField::LengthHint::HINT_SHORT, /*required=*/true,
|
| EditorField::ControlType::COMBOBOX);
|
| }
|
| }
|
| @@ -297,7 +297,7 @@ void ShippingAddressEditorViewController::UpdateEditorFields() {
|
| editor_fields_.emplace_back(
|
| autofill::PHONE_HOME_NUMBER,
|
| l10n_util::GetStringUTF16(IDS_AUTOFILL_FIELD_LABEL_PHONE),
|
| - EditorField::LengthHint::HINT_LONG, /*required=*/false,
|
| + EditorField::LengthHint::HINT_SHORT, /*required=*/false,
|
| EditorField::ControlType::TEXTFIELD);
|
| }
|
|
|
|
|