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

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

Issue 13488009: Remove application locale cache in autofill code. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 7 years, 8 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/country_combobox_model.cc
===================================================================
--- chrome/browser/ui/autofill/country_combobox_model.cc (revision 192613)
+++ chrome/browser/ui/autofill/country_combobox_model.cc (working copy)
@@ -4,6 +4,7 @@
#include "chrome/browser/ui/autofill/country_combobox_model.h"
+#include "chrome/browser/browser_process.h"
#include "components/autofill/browser/autofill_country.h"
#include "ui/base/l10n/l10n_util_collator.h"
@@ -11,7 +12,7 @@
CountryComboboxModel::CountryComboboxModel() {
// Insert the default country at the top as well as in the ordered list.
- std::string app_locale = AutofillCountry::ApplicationLocale();
+ std::string app_locale = g_browser_process->GetApplicationLocale();
std::string default_country_code =
AutofillCountry::CountryCodeForLocale(app_locale);
countries_.push_back(new AutofillCountry(default_country_code, app_locale));
« no previous file with comments | « chrome/browser/ui/autofill/autofill_popup_controller_unittest.cc ('k') | chrome/browser/ui/autofill/data_model_wrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698