mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 13:21:05 +00:00
Fixing build bustage.
This commit is contained in:
parent
1cbee2ae05
commit
040008671e
@ -62,7 +62,7 @@ public:
|
||||
NS_DECL_ISUPPORTS
|
||||
|
||||
// nsIChromeRegistry methods:
|
||||
NS_IMETHOD EnsureRegistryDataSource();
|
||||
NS_IMETHOD InitRegistry();
|
||||
NS_IMETHOD ConvertChromeURL(nsIURL* aChromeURL);
|
||||
|
||||
// nsIRDFDataSource methods
|
||||
@ -280,7 +280,7 @@ nsChromeRegistry::ConvertChromeURL(nsIURL* aChromeURL)
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsChromeRegistry::EnsureRegistryDataSource()
|
||||
nsChromeRegistry::InitRegistry()
|
||||
{
|
||||
if (mInner == nsnull)
|
||||
return Init("rdf:chrome");
|
||||
|
@ -229,7 +229,6 @@ nsNetlibService::nsNetlibService()
|
||||
(nsISupports **)&gChromeRegistry))) {
|
||||
gChromeRegistry = nsnull;
|
||||
}
|
||||
else gChromeRegistry->Init(); // Load the chrome registry
|
||||
}
|
||||
}
|
||||
|
||||
@ -397,7 +396,8 @@ nsresult nsNetlibService::OpenStream(nsIURL *aUrl,
|
||||
if ((PL_strcmp(protocol, "chrome") == 0) &&
|
||||
gChromeRegistry != nsnull) {
|
||||
|
||||
if (NS_FAILED(result = gChromeRegistry->ConvertChromeURL(aUrl))) {
|
||||
if (NS_FAILED(result = gChromeRegistry->InitRegistry()) ||
|
||||
NS_FAILED(result = gChromeRegistry->ConvertChromeURL(aUrl))) {
|
||||
NS_ERROR("Unable to convert chrome URL.");
|
||||
return result;
|
||||
}
|
||||
@ -552,7 +552,8 @@ nsresult nsNetlibService::OpenBlockingStream(nsIURL *aUrl,
|
||||
if ((PL_strcmp(protocol, "chrome") == 0) &&
|
||||
gChromeRegistry != nsnull) {
|
||||
|
||||
if (NS_FAILED(result = gChromeRegistry->ConvertChromeURL(aUrl))) {
|
||||
if (NS_FAILED(result = gChromeRegistry->InitRegistry()) ||
|
||||
NS_FAILED(result = gChromeRegistry->ConvertChromeURL(aUrl))) {
|
||||
NS_ERROR("Unable to convert chrome URL.");
|
||||
return result;
|
||||
}
|
||||
|
@ -33,7 +33,7 @@ public:
|
||||
static const nsIID& GetIID() { static nsIID iid = NS_ICHROMEREGISTRY_IID; return iid; }
|
||||
|
||||
NS_IMETHOD ConvertChromeURL(nsIURL* aChromeURL) = 0;
|
||||
NS_IMETHOD EnsureRegistryDataSource() = 0;
|
||||
NS_IMETHOD InitRegistry() = 0;
|
||||
};
|
||||
|
||||
// for component registration
|
||||
|
@ -62,7 +62,7 @@ public:
|
||||
NS_DECL_ISUPPORTS
|
||||
|
||||
// nsIChromeRegistry methods:
|
||||
NS_IMETHOD EnsureRegistryDataSource();
|
||||
NS_IMETHOD InitRegistry();
|
||||
NS_IMETHOD ConvertChromeURL(nsIURL* aChromeURL);
|
||||
|
||||
// nsIRDFDataSource methods
|
||||
@ -280,7 +280,7 @@ nsChromeRegistry::ConvertChromeURL(nsIURL* aChromeURL)
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsChromeRegistry::EnsureRegistryDataSource()
|
||||
nsChromeRegistry::InitRegistry()
|
||||
{
|
||||
if (mInner == nsnull)
|
||||
return Init("rdf:chrome");
|
||||
|
Loading…
Reference in New Issue
Block a user