summaryrefslogtreecommitdiffstats
path: root/application/basilisk/base/content/browser-syncui.js
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-03-13 16:36:55 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-03-13 16:36:55 +0100
commitf999f544aad04069b03704d994a99352263f600b (patch)
treeccb01180c10cbd67a14bccce4c3e14e2044ad463 /application/basilisk/base/content/browser-syncui.js
parentaa1a39311af0516dd6d2610a89b45221b60f3f20 (diff)
downloadUXP-f999f544aad04069b03704d994a99352263f600b.tar
UXP-f999f544aad04069b03704d994a99352263f600b.tar.gz
UXP-f999f544aad04069b03704d994a99352263f600b.tar.lz
UXP-f999f544aad04069b03704d994a99352263f600b.tar.xz
UXP-f999f544aad04069b03704d994a99352263f600b.zip
Remove fxAccountsEnabled checks.
Tag #812
Diffstat (limited to 'application/basilisk/base/content/browser-syncui.js')
-rw-r--r--application/basilisk/base/content/browser-syncui.js24
1 files changed, 3 insertions, 21 deletions
diff --git a/application/basilisk/base/content/browser-syncui.js b/application/basilisk/base/content/browser-syncui.js
index 000c8f7b4..b796e663b 100644
--- a/application/basilisk/base/content/browser-syncui.js
+++ b/application/basilisk/base/content/browser-syncui.js
@@ -93,14 +93,6 @@ var gSyncUI = {
// Returns a promise that resolves with true if Sync needs to be configured,
// false otherwise.
_needsSetup() {
- // If Sync is configured for FxAccounts then we do that promise-dance.
- if (this.weaveService.fxAccountsEnabled) {
- return fxAccounts.getSignedInUser().then(user => {
- // We want to treat "account needs verification" as "needs setup".
- return !(user && user.verified);
- });
- }
- // We are using legacy sync - check that.
let firstSync = "";
try {
firstSync = Services.prefs.getCharPref("services.sync.firstSync");
@@ -114,19 +106,9 @@ var gSyncUI = {
// to Sync needs to be verified, false otherwise.
_needsVerification() {
// For callers who care about the distinction between "needs setup" and
- // "needs verification"
- if (this.weaveService.fxAccountsEnabled) {
- return fxAccounts.getSignedInUser().then(user => {
- // If there is no user, they can't be in a "needs verification" state.
- if (!user) {
- return false;
- }
- return !user.verified;
- });
- }
-
- // Otherwise we are configured for legacy Sync, which has no verification
- // concept.
+ // "needs verification". Only for fxAccounts. XXX: remove this check.
+ // Since we are configured for legacy Sync only, which has no verification
+ // concept, just return false.
return Promise.resolve(false);
},