| 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 b62cbe6d6a81afcce7d33281e8491ffd87567e64..be95a350d1c54f7678e28136acdeabf52c0c518a 100644
|
| --- a/components/autofill/core/browser/personal_data_manager.cc
|
| +++ b/components/autofill/core/browser/personal_data_manager.cc
|
| @@ -924,8 +924,11 @@ std::string PersonalDataManager::MergeProfile(
|
| matching_profile_found = true;
|
| guid = existing_profile->guid();
|
|
|
| - // Look for duplicates of |existing_profile| to merge into.
|
| - FindMergeAndDeleteDuplicateProfiles(existing_profiles, existing_profile);
|
| + if (IsAutofillProfileCleanupEnabled()) {
|
| + // Look for duplicates of |existing_profile| to merge into.
|
| + FindMergeAndDeleteDuplicateProfiles(existing_profiles,
|
| + existing_profile);
|
| + }
|
|
|
| // We set the modification date so that immediate requests for profiles
|
| // will properly reflect the fact that this profile has been modified
|
|
|