[Payments] Dedupe subsets in contact detail suggestions.
Previously suggestions that are a subset of another suggestion are not
deduped.
With this patch, only the most complete version will be suggested to
the user.
A side-effect of this change is that ContactDetails are now sorted by
relevance in regards or the information required from the merchant
instead of completeness.
For example, considering a profile A with only email and a profile B
with email and phone, and a merchant requires email, phone and name.
Previously the order between A and B would have been decided by
frecency since both were incomplete. With this patch, B would be
suggested first since it has more information.
BUG=
674647
Review-Url:
https://codereview.chromium.org/2583593002
Cr-Commit-Position: refs/heads/master@{#441764}
Committed:
https://chromium.googlesource.com/chromium/src/+/90bf8242b2d3f9ffb2bef194f4e065fb81a13ce9