SyncTransportDataPrefs: Migrate InvalidationVersions to stable IDs
SyncTransportDataPrefs stores a kSyncInvalidationVersions pref that
contains the latest invalidation version per ModelType. Before this CL,
this was keyed by ModelTypeToString(), which is only supposed to be
used for debugging purposes.
This CL migrates to a new pref which instead is keyed by
ModelTypeToStableIdentifier().
Bug: 1173546
Change-Id: I478bd06c86bad7ac50e0a2b8d69c47ebb84e0da5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3383857
Reviewed-by: Mikel Astiz <[email protected]>
Commit-Queue: Marc Treib <[email protected]>
Cr-Commit-Position: refs/heads/main@{#958599}
diff --git a/chrome/browser/prefs/browser_prefs.cc b/chrome/browser/prefs/browser_prefs.cc
index 41f98c3..63386788 100644
--- a/chrome/browser/prefs/browser_prefs.cc
+++ b/chrome/browser/prefs/browser_prefs.cc
@@ -1826,6 +1826,9 @@
// Added 01/2022.
profile_prefs->ClearPref(kHasSeenLiteModeInfoBar);
+ // Added 01/2022.
+ syncer::SyncTransportDataPrefs::MigrateInvalidationVersions(profile_prefs);
+
// Please don't delete the following line. It is used by PRESUBMIT.py.
// END_MIGRATE_OBSOLETE_PROFILE_PREFS
}