| Index: chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc
|
| diff --git a/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc b/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc
|
| index d29a0dcdab428bdc279550c1f28eded742031b86..97908755d15f4969ca8b344ad0cac3caaee0c8b7 100644
|
| --- a/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc
|
| +++ b/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc
|
| @@ -29,6 +29,7 @@
|
| #include "chrome/browser/browser_process.h"
|
| #include "chrome/browser/profiles/profile.h"
|
| #include "chrome/browser/ui/autofill/autofill_dialog_common.h"
|
| +#include "chrome/browser/ui/autofill/autofill_dialog_i18n_input.h"
|
| #include "chrome/browser/ui/autofill/autofill_dialog_view.h"
|
| #include "chrome/browser/ui/autofill/data_model_wrapper.h"
|
| #if !defined(OS_ANDROID)
|
| @@ -603,14 +604,21 @@ void AutofillDialogControllerImpl::Show() {
|
| AutofillMetrics::SECURITY_METRIC_CROSS_ORIGIN_FRAME);
|
| }
|
|
|
| + // TODO(dbeam): use GetManager()->GetDefaultCountryCodeForNewAddress()
|
| + // instead when the country combobox is visible. http://crbug.com/331544
|
| + std::string country_code = "US";
|
| common::BuildInputsForSection(SECTION_CC,
|
| - &requested_cc_fields_);
|
| + &requested_cc_fields_,
|
| + country_code);
|
| common::BuildInputsForSection(SECTION_BILLING,
|
| - &requested_billing_fields_);
|
| + &requested_billing_fields_,
|
| + country_code);
|
| common::BuildInputsForSection(SECTION_CC_BILLING,
|
| - &requested_cc_billing_fields_);
|
| + &requested_cc_billing_fields_,
|
| + country_code);
|
| common::BuildInputsForSection(SECTION_SHIPPING,
|
| - &requested_shipping_fields_);
|
| + &requested_shipping_fields_,
|
| + country_code);
|
|
|
| // Test whether we need to show the shipping section. If filling that section
|
| // would be a no-op, don't show it.
|
|
|