Bug 1652392: rename "weave:service:login:change" notification. r=markh

Differential Revision: https://phabricator.services.mozilla.com/D115064
This commit is contained in:
Ben Dean-Kawamura 2021-05-13 23:40:31 +00:00
parent 7e0702e39b
commit dd2c570c8a
4 changed files with 5 additions and 5 deletions

View File

@ -25,7 +25,7 @@ ChromeUtils.defineModuleGetter(
const TOPICS = [
"weave:connected",
"weave:service:login:change",
"weave:service:login:got-hashed-id",
"weave:service:login:error",
"weave:service:ready",
"weave:service:sync:start",

View File

@ -560,7 +560,7 @@ this.SyncAuthManager.prototype = {
this._fxaService.telemetry._setHashedUID(token.hashed_fxa_uid);
return token;
} finally {
Services.obs.notifyObservers(null, "weave:service:login:change");
Services.obs.notifyObservers(null, "weave:service:login:got-hashed-id");
}
},

View File

@ -61,7 +61,7 @@ const TOPICS = [
"fxaccounts:new_device_id",
"fxaccounts:onlogout",
"weave:service:ready",
"weave:service:login:change",
"weave:service:login:got-hashed-id",
// For whole-of-sync metrics.
"weave:service:sync:start",
@ -953,7 +953,7 @@ class SyncTelemetryImpl {
switch (topic) {
case "weave:service:ready":
case "weave:service:login:change":
case "weave:service:login:got-hashed-id":
case "fxaccounts:new_device_id":
this.onAccountInitOrChange();
break;

View File

@ -223,7 +223,7 @@ add_task(async function test_observer_refreshState() {
let refreshState = sinon.spy(UIStateInternal, "refreshState");
let shouldRefresh = [
"weave:service:login:change",
"weave:service:login:got-hashed-id",
"weave:service:login:error",
"weave:service:ready",
"fxaccounts:onverified",