mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-10 13:54:27 +00:00
Bug 885042 - Remove vestigial add-on ignoring code. r=gps
This commit is contained in:
parent
410072b2b2
commit
99bbc881ed
@ -5138,7 +5138,7 @@ let HealthReportStatusListener = {
|
|||||||
break;
|
break;
|
||||||
case "nsPref:changed":
|
case "nsPref:changed":
|
||||||
sendMessageToJava({ type: "Pref:Change", pref: aData, value: Services.prefs.getBoolPref(aData) });
|
sendMessageToJava({ type: "Pref:Change", pref: aData, value: Services.prefs.getBoolPref(aData) });
|
||||||
break
|
break;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -5164,19 +5164,11 @@ let HealthReportStatusListener = {
|
|||||||
],
|
],
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return true if either the add-on has opted out of AMO updates, and thus
|
* Return true if the add-on is not of a type for which we report full details.
|
||||||
* we shouldn't provide details to FHR, or it's an add-on type that we
|
|
||||||
* don't want to report details for.
|
|
||||||
* These add-ons will still make it over to Java, but will be filtered out.
|
* These add-ons will still make it over to Java, but will be filtered out.
|
||||||
*/
|
*/
|
||||||
_shouldIgnore: function (aAddon) {
|
_shouldIgnore: function (aAddon) {
|
||||||
// TODO: check this pref. If it's false, the add-on has opted out of
|
return this.FULL_DETAIL_TYPES.indexOf(aAddon.type) == -1;
|
||||||
// AMO updates, and should not be reported.
|
|
||||||
let optOutPref = "extensions." + aAddon.id + ".getAddons.cache.enabled";
|
|
||||||
if (this.FULL_DETAIL_TYPES.indexOf(aAddon.type) == -1) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
},
|
},
|
||||||
|
|
||||||
_dateToDays: function (aDate) {
|
_dateToDays: function (aDate) {
|
||||||
|
Loading…
Reference in New Issue
Block a user