Fix problem with nsSecurityManagerFactory conversion to be a nsIModule. Patch from peterl@netscape.com. Review: me.

This commit is contained in:
rjc%netscape.com 1999-10-02 20:19:23 +00:00
parent 88203d51ef
commit 5f3ca2b087

View File

@ -17,7 +17,7 @@
*/
/*Factory for internal browser security resource managers*/
#if 0
#if 1
#include "nsCOMPtr.h"
#include "nsIModule.h"
@ -150,7 +150,7 @@ nsSecurityManagerModule::GetClassObject(nsIComponentManager *aCompMgr,
{
if (!mScriptSecurityManagerFactory) {
rv = NS_NewGenericFactory(getter_AddRefs(mScriptSecurityManagerFactory),
nsCodebasePrincipalConstructor);
Construct_nsIScriptSecurityManager);
}
fact = mScriptSecurityManagerFactory;
}
@ -158,7 +158,7 @@ nsSecurityManagerModule::GetClassObject(nsIComponentManager *aCompMgr,
{
if (!mCodebasePrincipalFactory) {
rv = NS_NewGenericFactory(getter_AddRefs(mCodebasePrincipalFactory),
Construct_nsIScriptSecurityManager);
nsCodebasePrincipalConstructor);
}
fact = mCodebasePrincipalFactory;
}