Bug 1569581 - Use FxAccountsCommon.FXA_PWDMGR_* constants in AboutProtectionsHandler. r=jaws

Differential Revision: https://phabricator.services.mozilla.com/D43168

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Matthew Noorenberghe 2019-08-23 18:21:37 +00:00
Родитель 62c257445d
Коммит a93025697c
1 изменённых файлов: 7 добавлений и 2 удалений

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

@ -20,6 +20,11 @@ ChromeUtils.defineModuleGetter(
"fxAccounts",
"resource://gre/modules/FxAccounts.jsm"
);
ChromeUtils.defineModuleGetter(
this,
"FxAccountsCommon",
"resource://gre/modules/FxAccountsCommon.js"
);
ChromeUtils.defineModuleGetter(
this,
"LoginHelper",
@ -175,9 +180,9 @@ var AboutProtectionsHandler = {
const userFacingLogins =
Services.logins.countLogins("", "", "") -
Services.logins.countLogins(
"chrome://FirefoxAccounts",
FxAccountsCommon.FXA_PWDMGR_HOST,
null,
"Firefox Accounts credentials"
FxAccountsCommon.FXA_PWDMGR_REALM
);
return {