mAutoRegistered = PR_TRUE;
nsStaticComponentLoader::AutoRegisterComponents(PRInt32 when, nsIFile *dir){    if (mAutoRegistered)        return NS_OK;    nsresult rv;    if (NS_FAILED(rv = GetModuleInfo()))        return rv;    RegisterSelfData data = { mComponentMgr, dir };    PL_DHashTableEnumerate(&mInfoHash, info_RegisterSelf, &data);    return NS_OK;}