From a93025697cd6e13e05da6dd1015a16fa22b8dfa2 Mon Sep 17 00:00:00 2001 From: Matthew Noorenberghe Date: Fri, 23 Aug 2019 18:21:37 +0000 Subject: [PATCH] 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 --- browser/components/about/AboutProtectionsHandler.jsm | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/browser/components/about/AboutProtectionsHandler.jsm b/browser/components/about/AboutProtectionsHandler.jsm index cfe61e31c267..cdf6a71f65ef 100644 --- a/browser/components/about/AboutProtectionsHandler.jsm +++ b/browser/components/about/AboutProtectionsHandler.jsm @@ -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 {