mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-18 15:55:36 +00:00
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:
parent
645bc7cc30
commit
499384cb8e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user