mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 11:55:49 +00:00
Bug 1652392: rename "weave:service:login:change" notification. r=markh
Differential Revision: https://phabricator.services.mozilla.com/D115064
This commit is contained in:
parent
7e0702e39b
commit
dd2c570c8a
@ -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",
|
||||
|
@ -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");
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user