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 22:47:40 +02:00
parent f121011e65
commit 0bc6be7e7f

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.