Closed Bug 1370656 Opened 9 years ago Closed 9 years ago

Same instance of TelemetryCollector is being re-used between syncs

Categories

(Firefox for Android Graveyard :: Android Sync, enhancement)

enhancement
Not set
normal

Tracking

(firefox55 fixed)

RESOLVED FIXED
Firefox 55
Tracking Status
firefox55 --- fixed

People

(Reporter: Grisha, Assigned: Grisha)

References

Details

Attachments

(1 file)

We have a static reference to the sync adapter in FxAccountSyncService, and since TelemetryCollector is a field in the sync adapter, and it's never cleared, we'll end up re-using whatever contents it had from previous syncs that were not overridden.
Comment on attachment 8875012 [details] Bug 1370656 - Don't re-use the same instance of TelemetryCollector between syncs https://reviewboard.mozilla.org/r/146354/#review150384 The next step on this road is to make the `GlobalSession` own the `TelemetryCollector`... except you don't want that since you want to capture information before the global session starts. Right?
Attachment #8875012 - Flags: review?(nalexander) → review+
(In reply to Nick Alexander :nalexander from comment #3) > Comment on attachment 8875012 [details] > Bug 1370656 - Don't re-use the same instance of TelemetryCollector between > syncs > > https://reviewboard.mozilla.org/r/146354/#review150384 > > The next step on this road is to make the `GlobalSession` own the > `TelemetryCollector`... except you don't want that since you want to capture > information before the global session starts. Right? That's correct. I've started out with that approach, but ended up moving the ownership out of the session object for that reason.
Pushed by gkruglov@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/09c76ee950d0 Don't re-use the same instance of TelemetryCollector between syncs r=nalexander
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 55
Product: Android Background Services → Firefox for Android
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: