Unix: Autoregistration disabled at initialization. This should be done by app.
git-svn-id: svn://10.0.0.236/trunk@23801 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
dd245a35ba
commit
5915fbf7df
@ -220,8 +220,11 @@ nsresult nsComponentManagerImpl::Init(void)
|
||||
PlatformVersionCheck();
|
||||
#endif
|
||||
|
||||
// Initiate autoreg
|
||||
#if !defined(XP_UNIX)
|
||||
// The below code is being moved out into the applications using using
|
||||
// nsSpecialSystemDirectory platform by platform.
|
||||
AutoRegister(NS_Startup, NULL);
|
||||
#endif /* !XP_UNIX */
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
@ -1575,7 +1578,9 @@ nsComponentManagerImpl::AutoRegister(RegistrationTime when,
|
||||
{
|
||||
SyncComponentsInPathList(pathlist);
|
||||
}
|
||||
|
||||
#if !defined(XP_UNIX)
|
||||
// The below code is being moved out into the applications using using
|
||||
// nsSpecialSystemDirectory platform by platform.
|
||||
#ifdef XP_MAC
|
||||
// get info for the the current process to determine the directory its located in
|
||||
if (!(err = GetCurrentProcess(&psn)))
|
||||
@ -1628,6 +1633,7 @@ nsComponentManagerImpl::AutoRegister(RegistrationTime when,
|
||||
const char *defaultPathList = "./components";
|
||||
SyncComponentsInPathList(defaultPathList);
|
||||
#endif
|
||||
#endif /* !XP_UNIX */
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
@ -198,7 +198,6 @@ protected:
|
||||
#define NS_MOZILLA_DIR_PERMISSION 00700
|
||||
#endif /* XP_UNIX */
|
||||
|
||||
|
||||
/**
|
||||
* When using the registry we put a version number in it.
|
||||
* If the version number that is in the registry doesn't match
|
||||
@ -209,7 +208,7 @@ protected:
|
||||
* alpha0.30 : Changing autoreg to begin registration from ./components on unix
|
||||
* alpha0.40 : repository -> component manager
|
||||
*/
|
||||
#define NS_XPCOM_COMPONENT_MANAGER_VERSION_STRING "alpha0.42"
|
||||
#define NS_XPCOM_COMPONENT_MANAGER_VERSION_STRING "alpha0.43"
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
/**
|
||||
|
||||
@ -220,8 +220,11 @@ nsresult nsComponentManagerImpl::Init(void)
|
||||
PlatformVersionCheck();
|
||||
#endif
|
||||
|
||||
// Initiate autoreg
|
||||
#if !defined(XP_UNIX)
|
||||
// The below code is being moved out into the applications using using
|
||||
// nsSpecialSystemDirectory platform by platform.
|
||||
AutoRegister(NS_Startup, NULL);
|
||||
#endif /* !XP_UNIX */
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
@ -1575,7 +1578,9 @@ nsComponentManagerImpl::AutoRegister(RegistrationTime when,
|
||||
{
|
||||
SyncComponentsInPathList(pathlist);
|
||||
}
|
||||
|
||||
#if !defined(XP_UNIX)
|
||||
// The below code is being moved out into the applications using using
|
||||
// nsSpecialSystemDirectory platform by platform.
|
||||
#ifdef XP_MAC
|
||||
// get info for the the current process to determine the directory its located in
|
||||
if (!(err = GetCurrentProcess(&psn)))
|
||||
@ -1628,6 +1633,7 @@ nsComponentManagerImpl::AutoRegister(RegistrationTime when,
|
||||
const char *defaultPathList = "./components";
|
||||
SyncComponentsInPathList(defaultPathList);
|
||||
#endif
|
||||
#endif /* !XP_UNIX */
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
@ -198,7 +198,6 @@ protected:
|
||||
#define NS_MOZILLA_DIR_PERMISSION 00700
|
||||
#endif /* XP_UNIX */
|
||||
|
||||
|
||||
/**
|
||||
* When using the registry we put a version number in it.
|
||||
* If the version number that is in the registry doesn't match
|
||||
@ -209,7 +208,7 @@ protected:
|
||||
* alpha0.30 : Changing autoreg to begin registration from ./components on unix
|
||||
* alpha0.40 : repository -> component manager
|
||||
*/
|
||||
#define NS_XPCOM_COMPONENT_MANAGER_VERSION_STRING "alpha0.42"
|
||||
#define NS_XPCOM_COMPONENT_MANAGER_VERSION_STRING "alpha0.43"
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user