Bug 1268548 - Add telemetry for when the addon manager upgrade dialog is shown, r=rhelmer a=ritu

MozReview-Commit-ID: 7dxkY9lIMWc
This commit is contained in:
Benjamin Smedberg 2016-04-28 13:07:42 -04:00
parent 172106569a
commit bb062529d8
2 changed files with 10 additions and 0 deletions

View File

@ -27,6 +27,14 @@
"n_buckets": 50,
"description": "time spent updating accessibility (ms)"
},
"ADDON_MANAGER_UPGRADE_UI_SHOWN": {
"expires_in_version": "53",
"kind": "count",
"description": "Recorded when the addon manager shows the modal upgrade UI. Should only be recorded once per upgrade.",
"releaseChannelCollection": "opt-out",
"bug_numbers": [1268548],
"alert_emails": ["kev@mozilla.com"]
},
"ADDON_SHIM_USAGE": {
"expires_in_version": "never",
"kind": "enumerated",

View File

@ -2872,6 +2872,8 @@ this.XPIProvider = {
*/
showUpgradeUI: function(aAddonIDs) {
logger.debug("XPI_showUpgradeUI: " + aAddonIDs.toSource());
Services.telemetry.getHistogramById("ADDON_MANAGER_UPGRADE_UI_SHOWN").add(1);
// Flip a flag to indicate that we interrupted startup with an interactive prompt
Services.startup.interrupted = true;