NS_ENSURE_ARG_POINTER(length); *length = 0; NS_ENSURE_ARG_POINTER(profileNames); *profileNames = nsnull;  return gProfileDataAccess->GetProfileList(nsIProfileInternal::LIST_ONLY_NEW, length, profileNames);
NS_IMETHODIMP nsProfile::GetProfileList(nsString& profileList){#if defined(DEBUG_profile)	printf("Inside GetProfileList routine.\n" );#endif	GetAllProfiles();	for (int i=0; i < g_numProfiles; i++)	{		if (i != 0)		{			profileList += ",";		}		profileList += gProfiles[i];	}	return NS_OK;}