mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-03 04:27:41 +00:00
add the removeIdentity() method to the the account manager interface.
I need this, because at migration time, I create a bogus identity for migration purpose, and I want to clean up after myself.
This commit is contained in:
parent
a8927fd2e9
commit
494451258f
@ -36,6 +36,7 @@ interface nsIMsgAccountManager : nsISupports {
|
||||
nsIMsgAccount getAccount(in string key);
|
||||
|
||||
void removeAccount(in nsIMsgAccount account);
|
||||
void removeIdentity(in nsIMsgIdentity identity);
|
||||
void duplicateAccount(in nsIMsgAccount account);
|
||||
|
||||
/*
|
||||
|
@ -704,8 +704,8 @@ nsMessengerMigrator::UpgradePrefs()
|
||||
rv = m_prefs->SavePrefFile();
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
// not yet, but soon.
|
||||
// rv = accountManager->RemoveIdentity(identity);
|
||||
// remove the temporary identity we used for migration purposes
|
||||
rv = accountManager->RemoveIdentity(identity);
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
@ -436,6 +436,13 @@ nsMsgAccountManager::DuplicateAccount(nsIMsgAccount *aAccount)
|
||||
return NS_ERROR_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsMsgAccountManager::RemoveIdentity(nsIMsgIdentity *aIdentity)
|
||||
{
|
||||
// finish this
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsMsgAccountManager::RemoveAccount(nsIMsgAccount *aAccount)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user