Bug 1682939 - Remove nsISimpleEnumerator use in imIAccountsService. r=clokep
This commit is contained in:
Родитель
ccf58c27ae
Коммит
8e265b6280
|
@ -3,7 +3,6 @@
|
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "nsISupports.idl"
|
||||
#include "nsISimpleEnumerator.idl"
|
||||
#include "imIAccount.idl"
|
||||
|
||||
[scriptable, uuid(b3b6459a-5c26-47b8-8e9c-ba838b6f632a)]
|
||||
|
@ -37,7 +36,7 @@ interface imIAccountsService: nsISupports {
|
|||
/* will throw NS_ERROR_FAILURE if not found */
|
||||
imIAccount getAccountByNumericId(in unsigned long aAccountId);
|
||||
|
||||
nsISimpleEnumerator getAccounts();
|
||||
Array<imIAccount> getAccounts();
|
||||
|
||||
/* will fire the event account-added */
|
||||
imIAccount createAccount(in AUTF8String aName, in AUTF8String aPrpl);
|
||||
|
|
|
@ -6,7 +6,6 @@ var EXPORTED_SYMBOLS = ["AccountsService"];
|
|||
|
||||
var {
|
||||
ClassInfo,
|
||||
nsSimpleEnumerator,
|
||||
XPCOMUtils,
|
||||
setTimeout,
|
||||
clearTimeout,
|
||||
|
@ -1226,7 +1225,7 @@ AccountsService.prototype = {
|
|||
return this._accountsById[aAccountId];
|
||||
},
|
||||
getAccounts() {
|
||||
return new nsSimpleEnumerator(this._accounts);
|
||||
return this._accounts;
|
||||
},
|
||||
|
||||
createAccount(aName, aPrpl) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче