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

Unified Diff: components/autofill/browser/autofill_merge_unittest.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: components/autofill/browser/autofill_merge_unittest.cc
===================================================================
--- components/autofill/browser/autofill_merge_unittest.cc (revision 192613)
+++ components/autofill/browser/autofill_merge_unittest.cc (working copy)
@@ -82,7 +82,8 @@
DISALLOW_COPY_AND_ASSIGN(PersonalDataManagerMock);
};
-PersonalDataManagerMock::PersonalDataManagerMock() : PersonalDataManager() {
+PersonalDataManagerMock::PersonalDataManagerMock()
+ : PersonalDataManager("en-US") {
}
PersonalDataManagerMock::~PersonalDataManagerMock() {
@@ -95,7 +96,7 @@
void PersonalDataManagerMock::SaveImportedProfile(
const AutofillProfile& profile) {
std::vector<AutofillProfile> profiles;
- if (!MergeProfile(profile, profiles_.get(), &profiles))
+ if (!MergeProfile(profile, profiles_.get(), "en-US", &profiles))
profiles_.push_back(new AutofillProfile(profile));
}
« no previous file with comments | « components/autofill/browser/autofill_manager_unittest.cc ('k') | components/autofill/browser/autofill_metrics_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698