Bug 1200944 - Instrument UI Pref for TP in PBM with Telemetry probe. r=ttaubert, f=ally

This commit is contained in:
Panos Astithas
2015-09-16 12:50:35 +03:00
parent f78e5e18e6
commit 902f4426f7
3 changed files with 15 additions and 0 deletions

View File

@@ -30,6 +30,7 @@ var TrackingProtection = {
gNavigatorBundle.getString("trackingProtection.icon.disabledTooltip");
this.enabledHistogramAdd(this.enabledGlobally);
this.disabledPBMHistogramAdd(!this.enabledInPrivateWindows);
},
uninit() {
@@ -62,6 +63,13 @@ var TrackingProtection = {
Services.telemetry.getHistogramById("TRACKING_PROTECTION_ENABLED").add(value);
},
disabledPBMHistogramAdd(value) {
if (PrivateBrowsingUtils.isWindowPrivate(window)) {
return;
}
Services.telemetry.getHistogramById("TRACKING_PROTECTION_PBM_DISABLED").add(value);
},
eventsHistogramAdd(value) {
if (PrivateBrowsingUtils.isWindowPrivate(window)) {
return;