| Index: chrome/browser/ui/autofill/autofill_dialog_controller_impl.h
|
| diff --git a/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h b/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h
|
| index 8b38d6a1ad72b85213707c645ed2449655d04518..5a92086c42d42d829161628155d38921ce569abb 100644
|
| --- a/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h
|
| +++ b/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h
|
| @@ -326,6 +326,9 @@ class AutofillDialogControllerImpl
|
| // Whether the user is known to be signed in.
|
| DialogSignedInState SignedInState() const;
|
|
|
| + // Gets the CountryComboboxModel for |section|.
|
| + CountryComboboxModel* CountryComboboxModelForSection(DialogSection section);
|
| +
|
| private:
|
| FRIEND_TEST_ALL_PREFIXES(AutofillDialogControllerI18nTest,
|
| CorrectCountryFromInputs);
|
| @@ -427,7 +430,11 @@ class AutofillDialogControllerImpl
|
| // Gets the value for |type| in |section|, whether it comes from manual user
|
| // input or the active suggestion.
|
| base::string16 GetValueFromSection(DialogSection section,
|
| - ServerFieldType type);
|
| + ServerFieldType type);
|
| +
|
| + // Returns whether the given section is can accept an address with the given
|
| + // country code.
|
| + bool CanAcceptCountry(DialogSection section, const std::string& country_code);
|
|
|
| // Gets the SuggestionsMenuModel for |section|.
|
| SuggestionsMenuModel* SuggestionsMenuModelForSection(DialogSection section);
|
| @@ -437,9 +444,6 @@ class AutofillDialogControllerImpl
|
| DialogSection SectionForSuggestionsMenuModel(
|
| const SuggestionsMenuModel& model);
|
|
|
| - // Gets the CountryComboboxModel for |section|.
|
| - CountryComboboxModel* CountryComboboxModelForSection(DialogSection section);
|
| -
|
| // Clears and builds the inputs in |section| for |country_name|.
|
| // When |should_clobber| is false, and the view's country value matches
|
| // |country_name|, the inputs won't be rebuilt.
|
| @@ -696,8 +700,8 @@ class AutofillDialogControllerImpl
|
| YearComboboxModel cc_exp_year_combobox_model_;
|
|
|
| // Models for country input.
|
| - CountryComboboxModel billing_country_combobox_model_;
|
| - CountryComboboxModel shipping_country_combobox_model_;
|
| + scoped_ptr<CountryComboboxModel> billing_country_combobox_model_;
|
| + scoped_ptr<CountryComboboxModel> shipping_country_combobox_model_;
|
|
|
| // Models for the suggestion views.
|
| SuggestionsMenuModel suggested_cc_;
|
|
|