follow on patch for making ldap prefs migration happen at profile migration time 223560, fix building with disable_ldap, r/sr/a=sspitzer

This commit is contained in:
bienvenu%nventure.com 2003-10-27 17:07:47 +00:00
Родитель 9d3e99b64f
Коммит e4e850351d
1 изменённых файлов: 5 добавлений и 1 удалений

Просмотреть файл

@ -83,7 +83,10 @@
#include "nsIAbUpgrader.h"
#include "nsIAddressBook.h"
#include "nsAbBaseCID.h"
#if defined(MOZ_LDAP_XPCOM)
#include "nsILDAPPrefsService.h"
#endif
#include "nsIMsgFilterService.h"
#include "nsIMsgFilterList.h"
@ -736,8 +739,9 @@ nsMessengerMigrator::UpgradePrefs()
if (NS_FAILED(rv)) return rv;
// this will upgrade the ldap prefs
#if defined(MOZ_LDAP_XPCOM)
nsCOMPtr <nsILDAPPrefsService> ldapPrefsService = do_GetService("@mozilla.org/ldapprefs-service;1", &rv);
#endif
// we're done migrating, let's save the prefs
rv = m_prefs->SavePrefFile(nsnull);
if (NS_FAILED(rv)) return rv;