Backed out changeset 09e3f293166a (bug 1301289) for xpcshell failures a=backout

This commit is contained in:
Wes Kocher 2016-09-08 17:41:11 -07:00
Родитель 819bc41348
Коммит 4d6a452635
1 изменённых файлов: 2 добавлений и 3 удалений

Просмотреть файл

@ -33,7 +33,7 @@ XPCOMUtils.defineLazyServiceGetter(this, "Telemetry",
const log = Log.repository.getLogger("Sync.Telemetry");
const TOPICS = [
"profile-before-change",
"xpcom-shutdown",
"weave:service:sync:start",
"weave:service:sync:finish",
"weave:service:sync:error",
@ -361,7 +361,6 @@ class SyncTelemetryImpl {
// We still call submit() with possibly illegal payloads so that tests can
// know that the ping was built. We don't end up submitting them, however.
if (record.syncs.length) {
log.trace(`submitting ${record.syncs.length} sync record(s) to telemetry`);
TelemetryController.submitExternalPing("sync", record);
}
}
@ -406,7 +405,7 @@ class SyncTelemetryImpl {
log.trace(`observed ${topic} ${data}`);
switch (topic) {
case "profile-before-change":
case "xpcom-shutdown":
this.shutdown();
break;