This commit is contained in:
hyatt%netscape.com 1999-04-10 09:13:54 +00:00
Родитель 4f71709008
Коммит ccde0dd489
4 изменённых файлов: 9 добавлений и 8 удалений

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

@ -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");