Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(64)

Unified Diff: components/autofill/core/browser/personal_data_manager.cc

Issue 2060223004: [Autofill] Put Autofill Profile Cleanup behing a feature flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ios fix Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698