Bug 1388611 - Update mProfileName after a profile reset to handle multiple consecutive resets. r=Dolske

Follow-up to bug 1122124 to ensure `SaveWordToEnvIfUnset("XRE_PROFILE_NAME", mProfileName);` saves the updated profile name after reset takes the old profiles name.

MozReview-Commit-ID: MTJAQUKktM

--HG--
extra : rebase_source : 4cb6e762898c3dd459f6ef4049687cd1e4170558
This commit is contained in:
Matthew Noorenberghe 2017-08-30 23:47:17 -07:00
Родитель 41c0b98adf
Коммит e92a849121
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -4455,6 +4455,7 @@ XREMain::XRE_mainRun()
rv = GetCurrentProfile(mProfileSvc, mProfD, getter_AddRefs(newProfile));
if (NS_SUCCEEDED(rv)) {
newProfile->SetName(gResetOldProfileName);
mProfileName.Assign(gResetOldProfileName);
// Set the new profile as the default after we're done cleaning up the old profile,
// iff that profile was already the default
if (profileWasSelected) {