Bug 1045766 - Add telemetry of users who can see new tab Tile suggestions [r=ttaubert]
authorEd Lee <edilee@mozilla.com>
Thu, 07 May 2015 15:12:57 -0700
changeset 274504 455e500b9b17a342e99dc8c0d818309c430549bd
parent 274503 ff1acf6219d7a0e561b774447a4116b89419016f
child 274505 c7b9e3ebd763d18e033862e466eab1dc8c69695f
push id863
push userraliiev@mozilla.com
push dateMon, 03 Aug 2015 13:22:43 +0000
treeherdermozilla-release@f6321b14228d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersttaubert
bugs1045766
milestone40.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1045766 - Add telemetry of users who can see new tab Tile suggestions [r=ttaubert]
toolkit/components/telemetry/Histograms.json
toolkit/modules/NewTabUtils.jsm
--- a/toolkit/components/telemetry/Histograms.json
+++ b/toolkit/components/telemetry/Histograms.json
@@ -4460,16 +4460,21 @@
     "n_values": 3,
     "description": "Whether the user is in safe mode (No, Yes, Forced)"
   },
   "NEWTAB_PAGE_ENABLED": {
     "expires_in_version": "default",
     "kind": "boolean",
     "description": "New tab page is enabled."
   },
+  "NEWTAB_PAGE_ENHANCED": {
+    "expires_in_version": "default",
+    "kind": "boolean",
+    "description": "New tab page is enhanced (showing suggestions)."
+  },
   "NEWTAB_PAGE_PINNED_SITES_COUNT": {
     "expires_in_version": "default",
     "kind": "enumerated",
     "n_values": 9,
     "description": "Number of pinned sites on the new tab page."
   },
   "NEWTAB_PAGE_BLOCKED_SITES_COUNT": {
     "expires_in_version": "default",
--- a/toolkit/modules/NewTabUtils.jsm
+++ b/toolkit/modules/NewTabUtils.jsm
@@ -1215,16 +1215,18 @@ let Telemetry = {
 
   /**
    * Collects data.
    */
   _collect: function Telemetry_collect() {
     let probes = [
       { histogram: "NEWTAB_PAGE_ENABLED",
         value: AllPages.enabled },
+      { histogram: "NEWTAB_PAGE_ENHANCED",
+        value: AllPages.enhanced },
       { histogram: "NEWTAB_PAGE_PINNED_SITES_COUNT",
         value: PinnedLinks.links.length },
       { histogram: "NEWTAB_PAGE_BLOCKED_SITES_COUNT",
         value: Object.keys(BlockedLinks.links).length }
     ];
 
     probes.forEach(function Telemetry_collect_forEach(aProbe) {
       Services.telemetry.getHistogramById(aProbe.histogram)