Remove fxAccountsEnabled checks.

Tag #812
This commit is contained in:
wolfbeast 2019-03-13 16:36:55 +01:00 • committed by Roy Tam
commit 77006c3f17
3 changed files with 13 additions and 56 deletions

View file

@ -14,13 +14,6 @@ var gSyncUtils = {
return this.bundle = Services.strings.createBundle("chrome://browser/locale/syncSetup.properties");
},
get fxAccountsEnabled() {
let service = Components.classes["@mozilla.org/weave/service;1"]
.getService(Components.interfaces.nsISupports)
.wrappedJSObject;
return service.fxAccountsEnabled;
},
// opens in a new window if we're in a modal prefwindow world, in a new tab otherwise
_openLink: function (url) {
let thisDocEl = document.documentElement,
@ -78,8 +71,7 @@ var gSyncUtils = {
},
get tosURL() {
let root = this.fxAccountsEnabled ? "fxa." : "";
return Weave.Svc.Prefs.get(root + "termsURL");
return Weave.Svc.Prefs.get("termsURL");
},
openToS: function () {
@ -87,8 +79,7 @@ var gSyncUtils = {
},
get privacyPolicyURL() {
let root = this.fxAccountsEnabled ? "fxa." : "";
return Weave.Svc.Prefs.get(root + "privacyURL");
return Weave.Svc.Prefs.get("privacyURL");
},
openPrivacyPolicy: function () {