Bug 1585211 - Have TPS enable sync when the test user logs in. r=tcsc

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Mark Hammond 2019-10-01 00:32:01 +00:00
parent 645bc7cc30
commit 499384cb8e

View File

@ -304,6 +304,17 @@ var TPS = {
case "weave:service:tracking-stopped":
this._isTracking = false;
break;
case "fxaccounts:onlogin":
// A user signed in - for TPS that always means sync - so configure
// that.
Weave.Service.configure().catch(e => {
this.DumpError("Configuring sync failed.", e);
});
break;
default:
Logger.logInfo(`unhandled event: ${topic}`);
}
} catch (e) {
this.DumpError("Observer failed", e);