Bug 1577317 - Add telemetry for "fix update directory permissions". r=rstrong

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Adam Gashlin 2019-09-20 17:11:11 +00:00
Родитель 7db4ad5d80
Коммит 9da5e001a9
3 изменённых файлов: 32 добавлений и 0 удалений

Просмотреть файл

@ -3114,6 +3114,24 @@ update:
operating_systems:
- windows
fix_permissions_attempted:
bug_numbers:
- 1577317
description: Set when we attempt to fix update directory permissions.
expires: "76"
kind: boolean
notification_emails:
- application-update-telemetry-alerts@mozilla.com
- agashlin@mozilla.com
- rstrong@mozilla.com
release_channel_collection: opt-out
products:
- 'firefox'
record_in_processes:
- main
operating_systems:
- windows
update.startup:
from_app_version:
bug_numbers:

Просмотреть файл

@ -1392,6 +1392,8 @@ function fixUpdateDirectoryPermissions() {
if (!gUpdateDirPermissionFixAttempted) {
// Never try to fix permissions more than one time during a session.
gUpdateDirPermissionFixAttempted = true;
AUSTLMY.pingFixUpdateDirectoryPermissionsAttempted();
LOG("Attempting to fix update directory permissions");
try {
Cc["@mozilla.org/updates/update-processor;1"]

Просмотреть файл

@ -642,6 +642,18 @@ var AUSTLMY = {
}
},
/**
* Submit a telemetry ping for a boolean scalar when we attempt to fix
* the update directory permissions this session.
*/
pingFixUpdateDirectoryPermissionsAttempted: function UT_PFUDPA() {
try {
Services.telemetry.scalarSet("update.fix_permissions_attempted", true);
} catch (e) {
Cu.reportError(e);
}
},
/**
* Submit a telemetry ping for a count type histogram when the expected value
* does not equal the boolean value of a pref or if the pref isn't present