| Index: chrome/browser/ui/autofill/autofill_dialog_i18n_input.cc
|
| diff --git a/chrome/browser/ui/autofill/autofill_dialog_i18n_input.cc b/chrome/browser/ui/autofill/autofill_dialog_i18n_input.cc
|
| index c3a39005f12067dd7ba8a9ca23ef8dc4de6884a8..6eed12764e0593052ca428b1023bff98c350ab18 100644
|
| --- a/chrome/browser/ui/autofill/autofill_dialog_i18n_input.cc
|
| +++ b/chrome/browser/ui/autofill/autofill_dialog_i18n_input.cc
|
| @@ -6,6 +6,7 @@
|
|
|
| #include "base/strings/string_split.h"
|
| #include "base/strings/utf_string_conversions.h"
|
| +#include "chrome/browser/browser_process.h"
|
| #include "components/autofill/core/browser/autofill_profile.h"
|
| #include "components/autofill/core/browser/credit_card.h"
|
| #include "components/autofill/core/browser/field_types.h"
|
| @@ -38,8 +39,11 @@ DetailInput::Length LengthFromHint(AddressUiComponent::LengthHint hint) {
|
| void BuildAddressInputs(common::AddressType address_type,
|
| const std::string& country_code,
|
| DetailInputs* inputs) {
|
| + // TODO(rouslan): Store the language code for the autofill profile.
|
| + // http://crbug.com/354955
|
| std::vector<AddressUiComponent> components(
|
| - ::i18n::addressinput::BuildComponents(country_code));
|
| + ::i18n::addressinput::BuildComponents(
|
| + country_code, g_browser_process->GetApplicationLocale(), NULL));
|
|
|
| const bool billing = address_type == common::ADDRESS_TYPE_BILLING;
|
|
|
| @@ -178,7 +182,8 @@ void CreateAddressData(
|
| bool CountryIsFullySupported(const std::string& country_code) {
|
| DCHECK_EQ(2U, country_code.size());
|
| std::vector< ::i18n::addressinput::AddressUiComponent> components =
|
| - ::i18n::addressinput::BuildComponents(country_code);
|
| + ::i18n::addressinput::BuildComponents(
|
| + country_code, g_browser_process->GetApplicationLocale(), NULL);
|
| for (size_t i = 0; i < components.size(); ++i) {
|
| if (components[i].field == ::i18n::addressinput::DEPENDENT_LOCALITY)
|
| return false;
|
|
|