Don't suggest autofill profiles that are subsets of other profiles.
commit5617cd9cfaab4b623cb2ffbc5e0cb2d8e70a148a
authorestade <estade@chromium.org>
Sat, 7 Mar 2015 00:30:54 +0000 (6 16:30 -0800)
committerCommit bot <commit-bot@chromium.org>
Sat, 7 Mar 2015 00:31:46 +0000 (7 00:31 +0000)
tree73ab437b446264a588dfd86c0313a1a356ce13e4
parent9cfb7fc13807a187057bed767fbf8557410cef2a
Don't suggest autofill profiles that are subsets of other profiles.

Before this patch, we had code to avoid showing duplicates, but it would not prevent showing subsets. For example, if you had profiles:

- Daisy Green, 123 Main, Littleton, CO
- Daisy Green, 123 Main, Littleton, CO, 80161

It would suggest both.

BUG=463305

Review URL: https://codereview.chromium.org/970403002

Cr-Commit-Position: refs/heads/master@{#319539}
components/autofill/core/browser/autofill_manager.cc
components/autofill/core/browser/autofill_profile.cc
components/autofill/core/browser/autofill_profile.h
components/autofill/core/browser/personal_data_manager.cc
components/autofill/core/browser/personal_data_manager_unittest.cc