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

Unified Diff: components/webdata/autofill/autofill_table.cc

Issue 13488009: Remove application locale cache in autofill code. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 9 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: components/webdata/autofill/autofill_table.cc
===================================================================
--- components/webdata/autofill/autofill_table.cc (revision 192175)
+++ components/webdata/autofill/autofill_table.cc (working copy)
@@ -331,8 +331,8 @@
// The maximum length allowed for form data.
const size_t AutofillTable::kMaxDataLength = 1024;
-AutofillTable::AutofillTable()
- : app_locale_(AutofillCountry::ApplicationLocale()) {
+AutofillTable::AutofillTable(const std::string& app_locale)
+ : app_locale_(app_locale) {
}
AutofillTable::~AutofillTable() {
@@ -1992,7 +1992,7 @@
if (PersonalDataManager::IsValidLearnableProfile(*p)) {
std::vector<AutofillProfile> merged_profiles;
bool merged = PersonalDataManager::MergeProfile(
- *p, accumulated_profiles_p, &merged_profiles);
+ *p, accumulated_profiles_p, app_locale_, &merged_profiles);
std::swap(accumulated_profiles, merged_profiles);

Powered by Google App Engine
This is Rietveld 408576698