mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-16 23:05:42 +00:00
Bug 1486423: Remove expiring telemetry.os_shutting_down probe r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D4357 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
bd5c20d12e
commit
5c127a69e4
@ -1564,21 +1564,6 @@ telemetry:
|
||||
record_in_processes:
|
||||
- 'main'
|
||||
|
||||
os_shutting_down:
|
||||
bug_numbers:
|
||||
- 1480826
|
||||
description: >
|
||||
Records true if there is a signal that Firefox was quitting because
|
||||
the OS was shutting down. Only available on Windows.
|
||||
expires: "64"
|
||||
kind: boolean
|
||||
notification_emails:
|
||||
- telemetry-client-dev@mozilla.com
|
||||
- agashlin@mozilla.com
|
||||
release_channel_collection: opt-out
|
||||
record_in_processes:
|
||||
- 'main'
|
||||
|
||||
telemetry.discarded:
|
||||
accumulations:
|
||||
bug_numbers:
|
||||
|
@ -800,7 +800,6 @@ var TelemetrySendImpl = {
|
||||
let setOSShutdown = () => {
|
||||
this._log.trace("setOSShutdown - in OS shutdown");
|
||||
this._isOSShutdown = true;
|
||||
Telemetry.scalarSet("telemetry.os_shutting_down", true);
|
||||
};
|
||||
|
||||
switch (topic) {
|
||||
|
@ -1032,8 +1032,6 @@ add_task(async function test_sendShutdownPing() {
|
||||
return;
|
||||
}
|
||||
|
||||
const OSSHUTDOWN_SCALAR = "telemetry.os_shutting_down";
|
||||
|
||||
let checkPendingShutdownPing = async function() {
|
||||
let pendingPings = await TelemetryStorage.loadPendingPingList();
|
||||
Assert.equal(pendingPings.length, 1,
|
||||
@ -1043,8 +1041,6 @@ add_task(async function test_sendShutdownPing() {
|
||||
Assert.ok(shutdownPing, "The 'shutdown' ping must be saved to disk.");
|
||||
Assert.equal("shutdown", shutdownPing.payload.info.reason,
|
||||
"The 'shutdown' ping must be saved to disk.");
|
||||
Assert.ok(shutdownPing.payload.processes.parent.scalars[OSSHUTDOWN_SCALAR],
|
||||
"The OS shutdown scalar must be set to true.");
|
||||
};
|
||||
|
||||
Preferences.set(TelemetryUtils.Preferences.ShutdownPingSender, true);
|
||||
@ -1063,8 +1059,6 @@ add_task(async function test_sendShutdownPing() {
|
||||
checkPingFormat(ping, ping.type, true, true);
|
||||
Assert.equal(ping.payload.info.reason, REASON_SHUTDOWN);
|
||||
Assert.equal(ping.clientId, gClientID);
|
||||
Assert.ok(!(OSSHUTDOWN_SCALAR in ping.payload.processes.parent.scalars),
|
||||
"The OS shutdown scalar must not be set.");
|
||||
// Try again, this time disable ping upload. The PingSender
|
||||
// should not be sending any ping!
|
||||
PingServer.registerPingHandler(() => Assert.ok(false, "Telemetry must not send pings if not allowed to."));
|
||||
|
Loading…
Reference in New Issue
Block a user