Bug 1439721 - Remove WEB_PERMISSION_CLEARED telemetry code. r=johannh

--HG--
extra : amend_source : 040e509ae4368819d704925dae2fbf881ba03fe6
This commit is contained in:
abhinav 2018-03-07 18:15:36 +05:30
Родитель 7e1997102b
Коммит 4c164bb0ae
2 изменённых файлов: 0 добавлений и 33 удалений

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

@ -8346,29 +8346,6 @@ var gIdentityHandler = {
this._permissionReloadHint.removeAttribute("hidden");
PanelView.forNode(this._identityPopupMainView)
.descriptionHeightWorkaround();
// Set telemetry values for clearing a permission
let histogram = Services.telemetry.getKeyedHistogramById("WEB_PERMISSION_CLEARED");
let permissionType = 0;
if (aPermission.state == SitePermissions.ALLOW &&
aPermission.scope == SitePermissions.SCOPE_PERSISTENT) {
// 1 : clear permanently allowed permission
permissionType = 1;
} else if (aPermission.state == SitePermissions.BLOCK &&
aPermission.scope == SitePermissions.SCOPE_PERSISTENT) {
// 2 : clear permanently blocked permission
permissionType = 2;
} else if (aPermission.state == SitePermissions.ALLOW) {
// 3 : clear temporary allowed permission
permissionType = 3;
} else if (aPermission.state == SitePermissions.BLOCK) {
// 4 : clear temporary blocked permission
permissionType = 4;
}
histogram.add("(all)", permissionType);
histogram.add(aPermission.id, permissionType);
});
container.appendChild(button);

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

@ -12808,16 +12808,6 @@
"kind": "count",
"description": "Number of named browser profiles for the current user, as reported by the profile service at startup."
},
"WEB_PERMISSION_CLEARED": {
"record_in_processes": ["main", "content"],
"alert_emails": ["firefox-dev@mozilla.org"],
"bug_numbers": [1286118],
"expires_in_version": "55",
"kind": "enumerated",
"keyed": true,
"n_values": 6,
"description": "Number of revoke actions on permissions in the control center, keyed by permission id. Values represent the permission type that was revoked. (0=unknown, 1=permanently allowed, 2=permanently blocked, 3=temporarily allowed, 4=temporarily blocked)"
},
"TIME_TO_FIRST_CLICK_MS": {
"record_in_processes": ["main", "content"],
"alert_emails": ["hkirschner@mozilla.com"],