|
|
Use AutofillProfileComparator in place of ad-hoc merge logic.
This CL integrates the AutofillProfileComparator into the profile
comparison and merge logic (used during profile creation/update
as well as sync).
- Use the AutofileProfileComparator::AreMergeabable(p1, p2) API
- Use the AutofillProfileComparator::Merge* APIs
- Add (in)equality operators to the autofill profile component
types (NameInfo, Address, EmailInfo, CompanyInfo, PhoneNumber)
- Updates the parser for the data driven autofill tests to be
less sensitive to whitespace.
BUG= 618095
R=mathp@chromium.org, tmartino@chromium.org
Committed: https://crrev.com/b457c9197023162148f861d3fb88df2e91b8b3d8
Cr-Commit-Position: refs/heads/master@{#403021}
Total comments: 25
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+326 lines, -468 lines) |
Patch |
 |
M |
components/autofill/core/browser/address.h
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/autofill/core/browser/address.cc
|
View
|
|
5 chunks |
+18 lines, -3 lines |
0 comments
|
Download
|
 |
M |
components/autofill/core/browser/autofill_merge_unittest.cc
|
View
|
1
|
3 chunks |
+11 lines, -6 lines |
0 comments
|
Download
|
 |
M |
components/autofill/core/browser/autofill_profile.h
|
View
|
1
|
4 chunks |
+4 lines, -27 lines |
0 comments
|
Download
|
 |
M |
components/autofill/core/browser/autofill_profile.cc
|
View
|
1
|
7 chunks |
+64 lines, -239 lines |
0 comments
|
Download
|
 |
M |
components/autofill/core/browser/autofill_profile_comparator_unittest.cc
|
View
|
1
|
2 chunks |
+56 lines, -13 lines |
0 comments
|
Download
|
 |
M |
components/autofill/core/browser/autofill_profile_unittest.cc
|
View
|
1
|
7 chunks |
+21 lines, -73 lines |
0 comments
|
Download
|
 |
M |
components/autofill/core/browser/contact_info.h
|
View
|
|
3 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/autofill/core/browser/contact_info.cc
|
View
|
|
3 chunks |
+15 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/autofill/core/browser/form_group.cc
|
View
|
|
2 chunks |
+7 lines, -8 lines |
0 comments
|
Download
|
 |
M |
components/autofill/core/browser/personal_data_manager.cc
|
View
|
1
|
6 chunks |
+35 lines, -30 lines |
0 comments
|
Download
|
 |
M |
components/autofill/core/browser/personal_data_manager_unittest.cc
|
View
|
1
|
8 chunks |
+27 lines, -19 lines |
0 comments
|
Download
|
 |
M |
components/autofill/core/browser/phone_number.h
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/autofill/core/browser/phone_number.cc
|
View
|
|
1 chunk |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/autofill/core/browser/webdata/autofill_profile_syncable_service.cc
|
View
|
1
|
4 chunks |
+9 lines, -15 lines |
0 comments
|
Download
|
 |
M |
components/autofill/core/browser/webdata/autofill_profile_syncable_service_unittest.cc
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
components/browser_sync/browser/profile_sync_service_autofill_unittest.cc
|
View
|
|
9 chunks |
+19 lines, -13 lines |
0 comments
|
Download
|
 |
M |
components/test/data/autofill/merge/output/addressLinesLessInfo.out
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
components/test/data/autofill/merge/output/addressLinesMoreInfo.out
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
components/test/data/autofill/merge/output/case.out
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
components/test/data/autofill/merge/output/email.out
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
components/test/data/autofill/merge/output/identical.out
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
components/test/data/autofill/merge/output/moreInfo.out
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
components/test/data/autofill/merge/output/names.out
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
components/test/data/autofill/merge/output/primarycase.out
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
components/test/data/autofill/merge/output/punctuation.out
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
components/test/data/autofill/merge/output/singlemerge.out
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
components/test/data/autofill/merge/output/streetaddress.out
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
components/test/data/autofill/merge/output/validation.out
|
View
|
|
2 chunks |
+7 lines, -7 lines |
0 comments
|
Download
|
 |
M |
components/test/data/autofill/merge/tools/autofill_merge_common.py
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Total messages: 23 (9 generated)
|