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

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

Issue 2546653006: [Merge m56][autofill] Merge can select the wrong address. (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/autofill/core/browser/autofill_profile_comparator.cc
diff --git a/components/autofill/core/browser/autofill_profile_comparator.cc b/components/autofill/core/browser/autofill_profile_comparator.cc
index cfbd6a1008b87a0c6f8641f6a99544bed064ab5a..edfe2450d67942fc5ff21c6964f54d4b79671967 100644
--- a/components/autofill/core/browser/autofill_profile_comparator.cc
+++ b/components/autofill/core/browser/autofill_profile_comparator.cc
@@ -548,7 +548,7 @@ bool AutofillProfileComparator::MergeAddresses(const AutofillProfile& p1,
break;
case S2_CONTAINS_S1:
// address2 has more unique tokens than address1.
- address->SetInfo(kStreetAddress, address1, app_locale_);
+ address->SetInfo(kStreetAddress, address2, app_locale_);
break;
case DIFFERENT_TOKENS:
default:
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698