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

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

Issue 212873003: Store the language code for the address in autofill profile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixups Created 6 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/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 9ad41cab9b9535c4668ded28545233d652d98490..1d4173e592564b7f0d24937d8cbc9d994ddbea25 100644
--- a/components/autofill/core/browser/personal_data_manager.cc
+++ b/components/autofill/core/browser/personal_data_manager.cc
@@ -400,7 +400,7 @@ void PersonalDataManager::UpdateProfile(const AutofillProfile& profile) {
return;
// Don't overwrite the origin for a profile that is already stored.
- if (existing_profile->Compare(profile) == 0)
+ if (existing_profile->EqualsSansOrigin(profile))
return;
if (profile.IsEmpty(app_locale_)) {

Powered by Google App Engine
This is Rietveld 408576698