Skip to content
This repository has been archived by the owner on Feb 29, 2020. It is now read-only.

Commit

Permalink
Bug 1442763: Set correct flag for 'off by default in release' and onl…
Browse files Browse the repository at this point in the history
…y send UT telemetry when general telemetry is sent. (#4017)
  • Loading branch information
Marina Samuel committed Mar 5, 2018
1 parent 65e7add commit d4c5fa7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion system-addon/lib/ActivityStream.jsm
Expand Up @@ -118,7 +118,7 @@ const PREFS_CONFIG = new Map([
}],
["telemetry.ut.events", {
title: "Enable Unified Telemetry event data collection",
value: !AppConstants.RELEASE_OR_BETA,
value: AppConstants.EARLY_BETA_OR_EARLIER,
value_local_dev: false
}],
["telemetry.ping.endpoint", {
Expand Down
2 changes: 1 addition & 1 deletion system-addon/lib/TelemetryFeed.jsm
Expand Up @@ -360,7 +360,7 @@ this.TelemetryFeed = class TelemetryFeed {
}

sendUTEvent(event_object, eventFunction) {
if (this.eventTelemetryEnabled) {
if (this.telemetryEnabled && this.eventTelemetryEnabled) {
eventFunction(event_object);
}
}
Expand Down
1 change: 1 addition & 0 deletions system-addon/test/unit/lib/TelemetryFeed.test.js
Expand Up @@ -478,6 +478,7 @@ describe("TelemetryFeed", () => {
});
describe("#sendUTEvent", () => {
it("should call the UT event function passed in", async () => {
FakePrefs.prototype.prefs[TELEMETRY_PREF] = true;
FakePrefs.prototype.prefs[EVENTS_TELEMETRY_PREF] = true;
const event = {};
instance = new TelemetryFeed();
Expand Down

0 comments on commit d4c5fa7

Please sign in to comment.