Bug 1275386 - Determine impact of stub installer default browser checkbox. r?rstrong draft
authorJared Wein <jwein@mozilla.com>
Wed, 01 Jun 2016 16:48:53 -0400
changeset 374112 51afb558015f6ad5da72c8e62dd41171930557a2
parent 371311 25566a14a7ac98674bfe9b6e73edc59fcc286c22
child 522554 bcf473233c59152df94c02973d9fb6864b212ebd
push id19932
push userjwein@mozilla.com
push dateWed, 01 Jun 2016 20:49:27 +0000
reviewersrstrong
bugs1275386
milestone49.0a1
Bug 1275386 - Determine impact of stub installer default browser checkbox. r?rstrong MozReview-Commit-ID: 5CrZQiMG5CM
browser/components/nsBrowserGlue.js
toolkit/components/telemetry/Histograms.json
--- a/browser/components/nsBrowserGlue.js
+++ b/browser/components/nsBrowserGlue.js
@@ -1073,16 +1073,22 @@ BrowserGlue.prototype = {
         }
       }
     }
 
     this._checkForOldBuildUpdates();
 
     this._firstWindowTelemetry(aWindow);
     this._firstWindowLoaded();
+
+    if (AppConstants.platform == "win") {
+      Services.telemetry
+              .getHistogramById("BROWSER_HIDE_DEFAULT_BROWSER_CHECKBOX_IN_INSTALLER")
+              .add(true);
+    }
   },
 
   /**
    * Application shutdown handler.
    */
   _onQuitApplicationGranted: function () {
     // This pref must be set here because SessionStore will use its value
     // on quit-application.
--- a/toolkit/components/telemetry/Histograms.json
+++ b/toolkit/components/telemetry/Histograms.json
@@ -8061,16 +8061,22 @@
   "BROWSER_SET_DEFAULT_TIME_TO_COMPLETION_SECONDS": {
     "expires_in_version": "never",
     "kind": "exponential",
     "high": 500,
     "n_buckets": 15,
     "releaseChannelCollection": "opt-out",
     "description": "Time to successfully set Firefox as the default browser after clicking 'Set Firefox as Default'. Should be near-instant in some environments, others require user interaction. Measured in seconds."
   },
+  "BROWSER_HIDE_DEFAULT_BROWSER_CHECKBOX_IN_INSTALLER": {
+    "expires_in_version": "53",
+    "kind": "boolean",
+    "releaseChannelCollection": "opt-out",
+    "description": "True if the checkbox to set the browser as default was hidden in the installer (Windows only)"
+  },
   "BROWSER_IS_ASSIST_DEFAULT": {
     "expires_in_version": "never",
     "kind": "boolean",
     "description": "The result of the default browser check for assist intent."
   },
   "MIXED_CONTENT_PAGE_LOAD": {
     "expires_in_version": "never",
     "kind": "enumerated",