Bug 1406087: All PingCentre pings should go to production by default. r=ursula
authorMarina Samuel <msamuel@mozilla.com>
Thu, 05 Oct 2017 11:12:17 -0400
changeset 427460 f19f7ec672025faaf33fd9fbb0f08c482323c88e
parent 427459 eb855465eb9c99727c286a9173166a60844c73ab
child 427461 8ebc51bb8bd0f6278ad3cec966e017dd4fd52c26
push id97
push userfmarier@mozilla.com
push dateSat, 14 Oct 2017 01:12:59 +0000
reviewersursula
bugs1406087
milestone58.0a1
Bug 1406087: All PingCentre pings should go to production by default. r=ursula MozReview-Commit-ID: 9ZmAG9fBWqX
browser/modules/PingCentre.jsm
--- a/browser/modules/PingCentre.jsm
+++ b/browser/modules/PingCentre.jsm
@@ -13,17 +13,16 @@ XPCOMUtils.defineLazyModuleGetter(this, 
   "resource://gre/modules/ClientID.jsm");
 XPCOMUtils.defineLazyModuleGetter(this, "TelemetryEnvironment",
   "resource://gre/modules/TelemetryEnvironment.jsm");
 
 const PREF_BRANCH = "browser.ping-centre.";
 
 const TELEMETRY_PREF = `${PREF_BRANCH}telemetry`;
 const LOGGING_PREF = `${PREF_BRANCH}log`;
-const STAGING_ENDPOINT_PREF = `${PREF_BRANCH}staging.endpoint`;
 const PRODUCTION_ENDPOINT_PREF = `${PREF_BRANCH}production.endpoint`;
 
 const FHR_UPLOAD_ENABLED_PREF = "datareporting.healthreport.uploadEnabled";
 
 /**
  * Observe various notifications and send them to a telemetry endpoint.
  *
  * @param {Object} options
@@ -67,20 +66,18 @@ class PingCentre {
     return this._enabled && this._fhrEnabled;
   }
 
   _setPingEndpoint(topic, overrideEndpointPref) {
     const overrideValue = overrideEndpointPref &&
       this._prefs.getStringPref(overrideEndpointPref);
     if (overrideValue) {
       this._pingEndpoint = overrideValue;
-    } else if (AppConstants.MOZ_UPDATE_CHANNEL === "release") {
+    } else {
       this._pingEndpoint = this._prefs.getStringPref(PRODUCTION_ENDPOINT_PREF);
-    } else {
-      this._pingEndpoint = this._prefs.getStringPref(STAGING_ENDPOINT_PREF);
     }
   }
 
   _onLoggingPrefChange(aSubject, aTopic, prefKey) {
     this.logging = this._prefs.getBoolPref(prefKey);
   }
 
   _onTelemetryPrefChange(aSubject, aTopic, prefKey) {