Bug 233850 - localstore.rdf is not created in user profile if it does not already exist (and doesn't exist in the profile defaults). r=ccarlen sr=darin

This commit is contained in:
bsmedberg%covad.net 2004-02-27 20:11:01 +00:00
Родитель 869845ff27
Коммит 00b3a89b9b
1 изменённых файлов: 5 добавлений и 2 удалений

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

@ -265,8 +265,11 @@ nsProfileDirServiceProvider::GetFile(const char *prop, PRBool *persistant, nsIFi
rv = domainDir->Clone(getter_AddRefs(localFile));
if (NS_SUCCEEDED(rv)) {
rv = localFile->AppendNative(LOCAL_STORE_FILE_50_NAME);
if (NS_SUCCEEDED(rv))
rv = EnsureProfileFileExists(localFile, domainDir);
if (NS_SUCCEEDED(rv)) {
// it's OK if we can't copy the file... it will be created
// by client code.
(void) EnsureProfileFileExists(localFile, domainDir);
}
}
}
else if (inAtom == sApp_History50) {