| Index: components/autofill/core/browser/personal_data_manager.cc
|
| diff --git a/components/autofill/core/browser/personal_data_manager.cc b/components/autofill/core/browser/personal_data_manager.cc
|
| index 3de374087908278c47f8f293437efdba8b91dfa0..73dd72042162f9c38d641d798a1e0f9e141c5251 100644
|
| --- a/components/autofill/core/browser/personal_data_manager.cc
|
| +++ b/components/autofill/core/browser/personal_data_manager.cc
|
| @@ -30,6 +30,7 @@
|
| #include "components/autofill/core/browser/validation.h"
|
| #include "components/autofill/core/common/autofill_pref_names.h"
|
| #include "components/autofill/core/common/autofill_switches.h"
|
| +#include "components/autofill/core/common/autofill_util.h"
|
| #include "components/signin/core/common/signin_pref_names.h"
|
| #include "third_party/libaddressinput/src/cpp/include/libaddressinput/address_data.h"
|
| #include "third_party/libaddressinput/src/cpp/include/libaddressinput/address_formatter.h"
|
| @@ -845,8 +846,8 @@ std::vector<Suggestion> PersonalDataManager::GetProfileSuggestions(
|
|
|
| base::string16 value_canon =
|
| AutofillProfile::CanonicalizeProfileString(values[i]);
|
| - if (StartsWith(value_canon, field_contents_canon, true)) {
|
| - // Prefix match, add suggestion.
|
| + if (IsContentsPrefixOfSuggestionToken(values[i], field_contents, true) ||
|
| + StartsWith(value_canon, field_contents_canon, true)) {
|
| matched_profiles.push_back(profile);
|
| suggestions.push_back(Suggestion(values[i]));
|
| suggestions.back().backend_id.guid = profile->guid();
|
|
|