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

Unified Diff: components/autofill/core/browser/personal_data_manager.cc

Issue 1582353006: CountryNames: Separate data creation from usage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@571610_exposeCountryNamesToTesting
Patch Set: Set CountryNames locale also from PersonalDataManager Created 4 years, 11 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/autofill/core/browser/personal_data_manager.cc
diff --git a/components/autofill/core/browser/personal_data_manager.cc b/components/autofill/core/browser/personal_data_manager.cc
index 75888ec906bb7c9583fa629e09006c72226b3129..6f6b29a186ce480b09d9620762ceb3930b984aa4 100644
--- a/components/autofill/core/browser/personal_data_manager.cc
+++ b/components/autofill/core/browser/personal_data_manager.cc
@@ -26,6 +26,7 @@
#include "components/autofill/core/browser/autofill_field.h"
#include "components/autofill/core/browser/autofill_metrics.h"
#include "components/autofill/core/browser/country_data.h"
+#include "components/autofill/core/browser/country_names.h"
#include "components/autofill/core/browser/form_structure.h"
#include "components/autofill/core/browser/personal_data_manager_observer.h"
#include "components/autofill/core/browser/phone_number.h"
@@ -218,6 +219,8 @@ void PersonalDataManager::Init(scoped_refptr<AutofillWebDataService> database,
AccountTrackerService* account_tracker,
SigninManagerBase* signin_manager,
bool is_off_the_record) {
+ CountryNames::SetLocaleString(app_locale_);
+
database_ = database;
SetPrefService(pref_service);
account_tracker_ = account_tracker;

Powered by Google App Engine
This is Rietveld 408576698