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

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

Issue 2077003002: [Autofill] Fix profiles with bad |use_date| values. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 1line 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.h
diff --git a/components/autofill/core/browser/personal_data_manager.h b/components/autofill/core/browser/personal_data_manager.h
index 5357888b874fe3830725eea7e7e5265e684c31c8..9fcbc74b80a253ff97d6b096a415503021e76b2e 100644
--- a/components/autofill/core/browser/personal_data_manager.h
+++ b/components/autofill/core/browser/personal_data_manager.h
@@ -256,6 +256,9 @@ class PersonalDataManager : public KeyedService,
FindAndMergeDuplicateProfiles_ProfilesToDelete);
FRIEND_TEST_ALL_PREFIXES(PersonalDataManagerTest,
FindAndMergeDuplicateProfiles_MergedProfileValues);
+ FRIEND_TEST_ALL_PREFIXES(PersonalDataManagerTest, ApplyProfileUseDatesFix);
+ FRIEND_TEST_ALL_PREFIXES(PersonalDataManagerTest,
+ ApplyProfileUseDatesFix_NotAppliedTwice);
friend class autofill::AutofillInteractiveTest;
friend class autofill::AutofillTest;
friend class autofill::PersonalDataManagerFactory;
@@ -437,6 +440,10 @@ class PersonalDataManager : public KeyedService,
AutofillProfile* profile_to_merge,
std::vector<std::string>* profile_guids_to_delete);
+ // Runs the Autofill use date fix routine if it's never been done. Returns
+ // whether the routine was run.
+ void ApplyProfileUseDatesFix();
+
const std::string app_locale_;
// The default country code for new addresses.
« no previous file with comments | « components/autofill/core/browser/autofill_manager.cc ('k') | components/autofill/core/browser/personal_data_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698