gecko-dev/browser/components/migration
Dave Townsend 55dc7cb4db Bug 1518587: Move startup profile selection to nsToolkitProfileService. r=froydnj
Currently nsAppRunner is responsible for choosing or creating a profile to use
at startup. It then has to create a reset profile if necessary and lock the
selected profile directories. But these latter things are done in different
places of the selection code and done in different ways, sometimes we delay
while trying to get the lock, sometimes we don't.

This patch moves the profile selection part of the code to its own function so
that then we only have to have one place that does the profile reset and
locking logic.

It makes a lot of sense to have the selection code live in the profile service.
It can use information from the database load to help make the choices and it
also means that we can expose the profile selection code through xpcom allowing
it to be easily automatically tested. It will also be more important for future
patches for the dedicated profiles feature.

Differential Revision: https://phabricator.services.mozilla.com/D16116

--HG--
extra : moz-landing-system : lando
2019-01-14 17:27:34 +00:00
..
content Bug 1507301 - Migrate about:sessionrestore and about:welcomeback to use Fluent for localization r=Gijs,flod,zbraniecki 2018-11-19 22:01:58 +00:00
tests Bug 1518587: Move startup profile selection to nsToolkitProfileService. r=froydnj 2019-01-14 17:27:34 +00:00
.eslintrc.js Merge mozilla-central to inbound a=merge on a CLOSED TREE 2018-08-31 19:35:06 +03:00
360seProfileMigrator.js Bug 1486147: Part 2 - Update JS string enumerator callers to use JS iteration. r=mccr8 2018-08-24 16:22:40 -07:00
BrowserProfileMigrators.manifest Bug 1437940 - include Chrome Beta and Chrome Dev in migration list on Linux, r=dthayer 2018-03-01 14:03:06 +00:00
ChromeMigrationUtils.jsm Bug 1478308 - Remove unnecessary ChromeUtils.imports in browser/ r=mikedeboer 2018-07-25 09:10:07 +01:00
ChromeProfileMigrator.js Bug 1260399 - Remove deprecated messages in nsICookieManager methods - part 1 - nsICookieManager.add(), r=ehsan 2018-09-24 11:37:56 +02:00
ESEDBReader.jsm Bug 1448920 - add support for importing Edge typed URL history from its database instead, r=mak 2018-04-18 17:50:36 +01:00
EdgeProfileMigrator.js Bug 1478308 - Remove unnecessary ChromeUtils.imports in browser/ r=mikedeboer 2018-07-25 09:10:07 +01:00
FirefoxProfileMigrator.js Bug 1497960: Make ProfileAge return the same instances for the same profile directory and preload times.json to avoid data races. r=janerik 2018-10-12 18:10:20 +00:00
IEProfileMigrator.js Bug 1484496: Part 5a - Convert browser/ nsISimpleEnumerator users to use JS iteration. r=Gijs 2018-08-18 19:27:33 -07:00
MSMigrationUtils.jsm Bug 1260399 - Remove deprecated messages in nsICookieManager methods - part 1 - nsICookieManager.add(), r=ehsan 2018-09-24 11:37:56 +02:00
MigrationUtils.jsm Backed out 2 changesets (bug 1482091) for bc failures on browser_domFullscreen_fullscreenMode.js 2018-11-03 01:08:36 +02:00
ProfileMigrator.js Bug 1456035: Part 4 - Convert callers of XPCOMUtils.generateQI to ChromeUtils.generateQI. r=mccr8 2018-04-22 20:55:06 -07:00
SafariProfileMigrator.js Bug 1478308 - Remove unnecessary ChromeUtils.imports in browser/ r=mikedeboer 2018-07-25 09:10:07 +01:00
jar.mn
moz.build Bug 1488926 - remove automigration code (already preffed off), r=dthayer 2018-10-11 17:04:59 +00:00
nsIBrowserProfileMigrator.idl
nsIEHistoryEnumerator.cpp Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
nsIEHistoryEnumerator.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
nsWindowsMigrationUtils.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00