зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
7db4ad5d80
Коммит
9da5e001a9
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче