Open Bug 2036436 Opened 6 months ago Updated 7 days ago

Consolidate the call to getApplicationInstalledTime in one location per app-startup

Categories

(Firefox for Android :: Performance, task)

All
Android
task

Tracking

()

ASSIGNED

People

(Reporter: Gela, Assigned: jocelyne.ah1)

References

Details

(Keywords: good-next-bug)

Attachments

(1 external file)

We have a few different places calling getApplicationInstalledTime. Since install time doesn't change, we should have only 1 call per startup. The other calls that happens after should be using a cached value.

Keywords: good-next-bug

The Bugbug bot thinks this bug should belong to the 'Firefox for Android::Performance' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: General → Performance

The install time cannot change while the app is running, so look it up once per process instead of asking the PackageManager separately in Nimbus, MetricsStorage, GrowthDataWorker and the Terms of Use pref.

These callers now get 0L when the lookup fails instead of an exception, which matches what getApplicationInstalledTime() already did.

Assignee: nobody → jocelyne.ah1
Status: NEW → ASSIGNED
Depends on: 2091371
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: