mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-28 21:28:55 +00:00
Retrieving the base directory (in theory).
This commit is contained in:
parent
b8ca718e14
commit
ede8757505
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user