Bug 1118863 - Add telemetry to know whether password saving is disabled globally. r=MattN, a=lmandel
authorAllison Naaktgeboren <ally@mozilla.com>
Thu, 22 Jan 2015 15:23:28 -0800
changeset 249666 507228e928da97e617f2fbc8db4bc119ea8c5c98
parent 249665 bfd779b9caceda47293d5b1bd9d117271e64ba53
child 249667 29b870324ecb0a2ba5474eb0bb7f456c66c6a2a6
push id4489
push userraliiev@mozilla.com
push dateMon, 23 Feb 2015 15:17:55 +0000
treeherdermozilla-beta@fd7c3dc24146 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersMattN, lmandel
bugs1118863
milestone37.0a2
Bug 1118863 - Add telemetry to know whether password saving is disabled globally. r=MattN, a=lmandel
toolkit/components/passwordmgr/nsLoginManager.js
toolkit/components/telemetry/Histograms.json
--- a/toolkit/components/passwordmgr/nsLoginManager.js
+++ b/toolkit/components/passwordmgr/nsLoginManager.js
@@ -207,16 +207,20 @@ LoginManager.prototype = {
             }
         }
     },
 
     _gatherTelemetry : function() {
       let numPasswordsHist = Services.telemetry.getHistogramById("PWMGR_NUM_SAVED_PASSWORDS");
       numPasswordsHist.clear();
       numPasswordsHist.add(this.countLogins("", "", ""));
+
+      let isPwdSavedEnabledHist = Services.telemetry.getHistogramById("PWMGR_SAVING_ENABLED");
+      isPwdSavedEnabledHist.clear();
+      isPwdSavedEnabledHist.add(this._remember);
     },
 
 
 
 
 
     /* ---------- Primary Public interfaces ---------- */
 
--- a/toolkit/components/telemetry/Histograms.json
+++ b/toolkit/components/telemetry/Histograms.json
@@ -7161,16 +7161,21 @@
   "PWMGR_NUM_SAVED_PASSWORDS": {
     "expires_in_version": "never",
     "kind": "exponential",
     "high": 750,
     "n_buckets" : 50,
     "extended_statistics_ok": true,
     "description": "The number of saved signons in storage"
   },
+  "PWMGR_SAVING_ENABLED": {
+    "expires_in_version": "never",
+    "kind": "boolean",
+    "description": "Number of users who have password saving on globally"
+  },
   "FENNEC_SYNC11_MIGRATION_SENTINELS_SEEN": {
     "expires_in_version": "45",
     "kind": "count",
     "description": "The number of Sync 1.1 -> Sync 1.5 migration sentinels seen by Android Sync."
   },
   "FENNEC_SYNC11_MIGRATIONS_FAILED": {
     "expires_in_version": "45",
     "kind": "count",