fune/browser/components/migration
Dave Townsend 9127e8bbdc Bug 1322797: Replace selectedProfile with currentProfile and fix defaultProfile. r=froydnj, r=flod
The current properties selectedProfile and defaultProfile are somewhat confusing
selectedProfile actually returns the default profile for the build and
defaultProfile returns the default profile for non-dev-edition builds. This
confusion leads to callers doing the wrong thing in some places.

What most code actually cares about is being able to set/get the default profile
for this build and getting the current profile in use. So this patch replaces
the previous properties with currentProfile and defaultProfile which do what
makes more sense.

This patch also switches from using the preprocessor to change behaviour for
dev-edition builds to using a boolean flag since some code was incorrectly
ignoring the setting to make dev-edition use the same profile as normal builds.

In order to make currentProfile correct when resetting a profile I had to move
CreateResetProfile into nsToolkitProfileService.

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

--HG--
extra : rebase_source : cefe252618cd3a1b0e0cd5a71b056dd2b557f1a3
extra : intermediate-source : 35af79575f54f75d22e213fdac7ddd704b40807a
extra : source : 732d1ce192408d4f595f2fce16f45c7354ce3097
2018-12-28 09:44:47 -08:00
..
content Bug 1514594: Part 3 - Change ChromeUtils.import API. 2019-01-17 10:18:31 -08:00
tests Bug 1522818 - Skip test_IE_cookies.js when cookies are not stored as files. r=Gijs 2019-01-30 00:08:39 +00:00
.eslintrc.js Bug 1518283 - prohibit blank lines at the beginning and end of blocks (eslint padded-blocks) r=mossop,Standard8 2019-01-30 17:26:25 +00:00
360seProfileMigrator.js Bug 1514594: Part 3 - Change ChromeUtils.import API. 2019-01-17 10:18:31 -08:00
BrowserProfileMigrators.manifest
ChromeMigrationUtils.jsm Bug 1520808 - Allow importing of history from Chrome even if it was created in the future. r=mak 2019-01-29 12:06:05 +00:00
ChromeProfileMigrator.js Bug 1520808 - Allow importing of history from Chrome even if it was created in the future. r=mak 2019-01-29 12:06:05 +00:00
EdgeProfileMigrator.js Bug 1514594: Part 3 - Change ChromeUtils.import API. 2019-01-17 10:18:31 -08:00
ESEDBReader.jsm Bug 1514594: Part 3 - Change ChromeUtils.import API. 2019-01-17 10:18:31 -08:00
FirefoxProfileMigrator.js Bug 1322797: Replace selectedProfile with currentProfile and fix defaultProfile. r=froydnj, r=flod 2018-12-28 09:44:47 -08:00
IEProfileMigrator.js Bug 1514594: Part 3 - Change ChromeUtils.import API. 2019-01-17 10:18:31 -08:00
jar.mn
MigrationUtils.jsm Bug 1520808 - Allow importing of history from Chrome even if it was created in the future. r=mak 2019-01-29 12:06:05 +00:00
moz.build Bug 1488926 - remove automigration code (already preffed off), r=dthayer 2018-10-11 17:04:59 +00:00
MSMigrationUtils.jsm Bug 1514594: Part 3 - Change ChromeUtils.import API. 2019-01-17 10:18:31 -08: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
ProfileMigrator.js Bug 1514594: Part 3 - Change ChromeUtils.import API. 2019-01-17 10:18:31 -08:00
SafariProfileMigrator.js Bug 1514594: Part 3 - Change ChromeUtils.import API. 2019-01-17 10:18:31 -08:00