Bug 1064333 - Init TelemetryPing in tests even if MOZILLA_OFFICIAL is not set. r=froydnj

This commit is contained in:
Georg Fritzsche 2014-10-19 20:45:15 +02:00
parent cbf225e6fb
commit f95f32ea67

View File

@ -907,7 +907,7 @@ let Impl = {
}
#ifdef MOZILLA_OFFICIAL
if (!Telemetry.canSend) {
if (!Telemetry.canSend && !aTesting) {
// We can't send data; no point in initializing observers etc.
// Only do this for official builds so that e.g. developer builds
// still enable Telemetry based on prefs.