mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-29 02:17:45 -10:00
Due to how we access our prefs files (read: all over the place), the idea here is to perform the migration whenever some component actually attempts to get the prefs. This guarantees that every consumer of prefs will receive the correct version, and we won't accidentally duplicate our shared prefs either. I would have preferred to just perform this migration at a set point. We have a "services upgrade point" - FxAccountUpgradeReceiver - which receives a "package upgraded" intent and kicks off some async work. Unfortunately, we can't guarantee that its tasks won't overlap with our uses of prefs (either in the background or foreground code). MozReview-Commit-ID: AWQ4IY7i32F