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

Unified Diff: chrome/browser/ui/autofill/autofill_dialog_models.cc

Issue 12328091: set a default country in the autofill dialog. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ilya review 2 Created 7 years, 10 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
Index: chrome/browser/ui/autofill/autofill_dialog_models.cc
diff --git a/chrome/browser/ui/autofill/autofill_dialog_models.cc b/chrome/browser/ui/autofill/autofill_dialog_models.cc
index 10aa69b6735247e3fa83148e32cc5b2126423d26..4096ea19b28c6e424553f4f629a8f35979d224bd 100644
--- a/chrome/browser/ui/autofill/autofill_dialog_models.cc
+++ b/chrome/browser/ui/autofill/autofill_dialog_models.cc
@@ -101,22 +101,4 @@ string16 YearComboboxModel::GetItemAt(int index) {
return base::IntToString16(this_year_ + index);
}
-// CountryComboboxModel --------------------------------------------------------
-
-CountryComboboxModel::CountryComboboxModel() {
- AutofillCountry::GetAvailableCountries(&country_codes_);
-}
-
-CountryComboboxModel::~CountryComboboxModel() {}
-
-int CountryComboboxModel::GetItemCount() const {
- return country_codes_.size();
-}
-
-string16 CountryComboboxModel::GetItemAt(int index) {
- std::string app_locale = AutofillCountry::ApplicationLocale();
- const AutofillCountry country(country_codes_[index], app_locale);
- return country.name();
-}
-
} // autofill
« no previous file with comments | « chrome/browser/ui/autofill/autofill_dialog_models.h ('k') | chrome/browser/ui/autofill/country_combobox_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698