Bug 1953884 - Eagerly create the profiles shared database. r=profiles-reviewers,mossop,jhirsch,firefox-desktop-core-reviewers ,omc-reviewers,emcminn

Differential Revision: https://phabricator.services.mozilla.com/D244621
This commit is contained in:
Niklas Baumgardner
2025-04-23 15:20:14 +00:00
parent 38ef7286e8
commit 7276800327
19 changed files with 558 additions and 436 deletions

View File

@@ -177,9 +177,9 @@ XPCOMUtils.defineLazyPreferenceGetter(
);
XPCOMUtils.defineLazyPreferenceGetter(
lazy,
"profileStoreID",
"toolkit.profiles.storeID",
null
"profilesCreated",
"browser.profiles.created",
false
);
XPCOMUtils.defineLazyPreferenceGetter(
lazy,
@@ -616,7 +616,7 @@ const TargetingGetters = {
return lazy.SelectableProfileService?.isEnabled ?? false;
},
get hasSelectableProfiles() {
return !!lazy.profileStoreID;
return lazy.profilesCreated;
},
get profileAgeCreated() {
return lazy.ProfileAge().then(times => times.created);