diff --git a/intl/strres/tests/StringBundleTest.cpp b/intl/strres/tests/StringBundleTest.cpp index 120e0e13c0c6..6d0a19ae5867 100644 --- a/intl/strres/tests/StringBundleTest.cpp +++ b/intl/strres/tests/StringBundleTest.cpp @@ -128,19 +128,7 @@ get_applocale(void) //////////////////////////////////////////////////////////////////////////////////////////////////// nsresult NS_AutoregisterComponents() { - nsIFileSpec* spec = NS_LocateFileOrDirectory( - nsSpecialFileSpec::App_ComponentsDirectory); - if (!spec) - return NS_ERROR_FAILURE; - - char *componentsDirPath; - nsresult rv = spec->GetNSPRPath(&componentsDirPath); - if (NS_FAILED(rv)) - return rv; - - if (componentsDirPath) - rv = nsComponentManager::AutoRegister(nsIComponentManager::NS_Startup, componentsDirPath); - NS_RELEASE(spec); + nsresult rv = nsComponentManager::AutoRegister(nsIComponentManager::NS_Startup, NULL /* default */); return rv; }