Retrieving the base directory (in theory).

This commit is contained in:
hyatt%netscape.com 1999-04-02 06:55:10 +00:00
parent b8ca718e14
commit ede8757505
2 changed files with 26 additions and 0 deletions

View File

@ -339,6 +339,19 @@ nsChromeRegistry::GetSkinOrContentResource(const nsString& aChromeType,
nsresult
nsChromeRegistry::GetChromeBase(nsString& aResult, nsIRDFResource* aChromeResource)
{
nsresult rv = NS_OK;
if (gRegistryDB == nsnull)
return NS_ERROR_FAILURE; // Must have a DB to attempt this operation.
nsCOMPtr<nsIRDFResource> chromeBase;
if (NS_FAILED(rv = gRegistryDB->GetSource(kCHROME_base, aChromeResource, PR_TRUE, getter_AddRefs(chromeBase)))) {
NS_ERROR("Unable to obtain a base resource.");
return rv;
}
// Now what?
return NS_OK;
}

View File

@ -339,6 +339,19 @@ nsChromeRegistry::GetSkinOrContentResource(const nsString& aChromeType,
nsresult
nsChromeRegistry::GetChromeBase(nsString& aResult, nsIRDFResource* aChromeResource)
{
nsresult rv = NS_OK;
if (gRegistryDB == nsnull)
return NS_ERROR_FAILURE; // Must have a DB to attempt this operation.
nsCOMPtr<nsIRDFResource> chromeBase;
if (NS_FAILED(rv = gRegistryDB->GetSource(kCHROME_base, aChromeResource, PR_TRUE, getter_AddRefs(chromeBase)))) {
NS_ERROR("Unable to obtain a base resource.");
return rv;
}
// Now what?
return NS_OK;
}