зеркало из https://github.com/mozilla/pjs.git
Back out fix for 100385.
This commit is contained in:
Родитель
1c8ef75fff
Коммит
dfa059f466
|
@ -351,7 +351,10 @@ static NS_DEFINE_CID(kStringBundleServiceCID, NS_STRINGBUNDLESERVICE_CID);
|
|||
NS_IMPL_ISUPPORTS2(nsMessengerMigrator, nsIMessengerMigrator, nsIObserver)
|
||||
|
||||
nsMessengerMigrator::nsMessengerMigrator() :
|
||||
m_haveShutdown(PR_FALSE)
|
||||
m_haveShutdown(PR_FALSE),
|
||||
m_oldMailType(-1),
|
||||
m_alreadySetNntpDefaultLocalPath(PR_FALSE),
|
||||
m_alreadySetImapDefaultLocalPath(PR_FALSE)
|
||||
{
|
||||
|
||||
NS_INIT_REFCNT();
|
||||
|
@ -391,7 +394,7 @@ nsresult nsMessengerMigrator::Init()
|
|||
rv = getPrefService();
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
rv = ResetState();
|
||||
rv = m_prefs->GetIntPref(PREF_4X_MAIL_SERVER_TYPE, &m_oldMailType);
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
@ -609,20 +612,6 @@ nsMessengerMigrator::CreateLocalMailAccount(PRBool migrating)
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
nsresult
|
||||
nsMessengerMigrator::ResetState()
|
||||
{
|
||||
m_alreadySetNntpDefaultLocalPath = PR_FALSE;
|
||||
m_alreadySetImapDefaultLocalPath = PR_FALSE;
|
||||
|
||||
// Reset 'm_oldMailType' in case the prefs file has changed. This is possible in quick launch
|
||||
// mode where the profile to be migrated is IMAP type but the current working profile is POP.
|
||||
nsresult rv = m_prefs->GetIntPref(PREF_4X_MAIL_SERVER_TYPE, &m_oldMailType);
|
||||
if (NS_FAILED(rv))
|
||||
m_oldMailType = -1;
|
||||
return rv;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsMessengerMigrator::UpgradePrefs()
|
||||
{
|
||||
|
@ -631,9 +620,6 @@ nsMessengerMigrator::UpgradePrefs()
|
|||
rv = getPrefService();
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
// Reset some control vars, necessary in turbo mode.
|
||||
ResetState();
|
||||
|
||||
// because mail.server_type defaults to 0 (pop) it will look the user
|
||||
// has something to migrate, even with an empty prefs.js file
|
||||
// ProceedWithMigration will check if there is something to migrate
|
||||
|
|
|
@ -140,8 +140,6 @@ private:
|
|||
|
||||
nsresult getPrefService();
|
||||
nsresult initializeStrings();
|
||||
|
||||
nsresult ResetState();
|
||||
|
||||
nsCOMPtr <nsIPref> m_prefs;
|
||||
PRBool m_haveShutdown;
|
||||
|
|
Загрузка…
Ссылка в новой задаче