mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-19 09:22:52 +00:00
Bug 108383 - no user prefs if starting mozilla with -p. r=bnesse/sr=alecf
This commit is contained in:
parent
07e2f4e3ac
commit
b64198bebc
@ -1181,6 +1181,13 @@ nsProfile::SetCurrentProfile(const PRUnichar * aCurrentProfile)
|
||||
// Bring network back online
|
||||
observerService->NotifyObservers(subject, "profile-change-net-restore", context.get());
|
||||
}
|
||||
else
|
||||
{
|
||||
// Ensure that the prefs service exists so it can respond to
|
||||
// the notifications we're about to send around. It needs to.
|
||||
nsCOMPtr<nsIPrefService> prefs = do_GetService(NS_PREFSERVICE_CONTRACTID, &rv);
|
||||
NS_ASSERTION(NS_SUCCEEDED(rv), "Could not get prefs service");
|
||||
}
|
||||
|
||||
// Phase 4: Notify observers that the profile has changed - Here they respond to new profile
|
||||
observerService->NotifyObservers(subject, "profile-do-change", context.get());
|
||||
|
Loading…
x
Reference in New Issue
Block a user