зеркало из https://github.com/mozilla/pjs.git
Fixing build bustage.
This commit is contained in:
Родитель
4f71709008
Коммит
ccde0dd489
|
@ -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");
|
||||
|
|
Загрузка…
Ссылка в новой задаче