mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1090967 part 2 - Don't use "default" as the name of the default profile on Aurora. r=bsmedberg
This commit is contained in:
parent
689b539bf0
commit
e91463ccc0
@ -2357,15 +2357,25 @@ SelectProfile(nsIProfileLock* *aResult, nsIToolkitProfileService* aProfileSvc, n
|
||||
// create a default profile
|
||||
nsCOMPtr<nsIToolkitProfile> profile;
|
||||
nsresult rv = aProfileSvc->CreateProfile(nullptr, // choose a default dir for us
|
||||
#ifdef MOZ_DEV_EDITION
|
||||
NS_LITERAL_CSTRING("dev-edition-default"),
|
||||
#else
|
||||
NS_LITERAL_CSTRING("default"),
|
||||
#endif
|
||||
getter_AddRefs(profile));
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
#ifndef MOZ_DEV_EDITION
|
||||
aProfileSvc->SetDefaultProfile(profile);
|
||||
#endif
|
||||
aProfileSvc->Flush();
|
||||
rv = profile->Lock(nullptr, aResult);
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
if (aProfileName)
|
||||
#ifdef MOZ_DEV_EDITION
|
||||
aProfileName->AssignLiteral("dev-edition-default");
|
||||
#else
|
||||
aProfileName->AssignLiteral("default");
|
||||
#endif
|
||||
return NS_OK;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user