Bug 1185568 More of UITour.jsm depends on health reporter r=gfritzsche
authorNeil Rashbrook <neil@parkwaycc.co.uk>
Wed, 29 Jul 2015 21:02:59 +0100
changeset 286936 b02f91b2987865cf01a7872905103b97ec35777b
parent 286935 2a95f6b059a64bcd978f1116b376c701e644c1aa
child 286937 13588e7747b115fed0b782c0da9a11dd0b069e79
push id5067
push userraliiev@mozilla.com
push dateMon, 21 Sep 2015 14:04:52 +0000
treeherdermozilla-beta@14221ffe5b2f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgfritzsche
bugs1185568
milestone42.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 1185568 More of UITour.jsm depends on health reporter r=gfritzsche
browser/components/uitour/UITour.jsm
--- a/browser/components/uitour/UITour.jsm
+++ b/browser/components/uitour/UITour.jsm
@@ -2071,18 +2071,16 @@ this.UITour = {
   },
 };
 
 this.UITour.init();
 
 /**
  * UITour Health Report
  */
-const DAILY_DISCRETE_TEXT_FIELD = Metrics.Storage.FIELD_DAILY_DISCRETE_TEXT;
-
 /**
  * Public API to be called by the UITour code
  */
 const UITourHealthReport = {
   recordTreatmentTag: function(tag, value) {
   TelemetryController.submitExternalPing("uitour-tag",
     {
       version: 1,
@@ -2110,16 +2108,19 @@ const UITourHealthReport = {
 
       // Get the UITourMetricsProvider instance from the Health Reporter
       reporter.getProvider("org.mozilla.uitour").recordTreatmentTag(tag, value);
     });
 #endif
   }
 };
 
+#ifdef MOZ_SERVICES_HEALTHREPORT
+const DAILY_DISCRETE_TEXT_FIELD = Metrics.Storage.FIELD_DAILY_DISCRETE_TEXT;
+
 this.UITourMetricsProvider = function() {
   Metrics.Provider.call(this);
 }
 
 UITourMetricsProvider.prototype = Object.freeze({
   __proto__: Metrics.Provider.prototype,
 
   name: "org.mozilla.uitour",
@@ -2179,8 +2180,9 @@ UITourTreatmentMeasurement1.prototype = 
 
     for (let [field, data] of data) {
       result[field] = data;
     }
 
     return result;
   }
 });
+#endif