[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}
Showing
This diff is collapsed.
Please register or sign in to comment