Bug 1589446 - Add network id change event (Windows) r=kershaw

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Valentin Gosu 2019-11-12 18:24:37 +00:00
parent cc3995546b
commit eecaa3ac0e

View File

@ -224,6 +224,7 @@ void nsNotifyAddrListener::calculateNetworkId(void) {
mNetworkId = output;
Telemetry::Accumulate(Telemetry::NETWORK_ID2, 1);
LOG(("calculateNetworkId: new NetworkID: %s", output.get()));
SendEvent(NS_NETWORK_LINK_DATA_NETWORKID_CHANGED);
} else {
Telemetry::Accumulate(Telemetry::NETWORK_ID2, 2);
LOG(("calculateNetworkId: same NetworkID: %s", output.get()));