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 281611 b02f91b2987865cf01a7872905103b97ec35777b
parent 281610 2a95f6b059a64bcd978f1116b376c701e644c1aa
child 281612 13588e7747b115fed0b782c0da9a11dd0b069e79
push id3894
push usermconley@mozilla.com
push dateThu, 30 Jul 2015 00:27:47 +0000
reviewersgfritzsche
bugs1185568
milestone42.0a1
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