Closed
Bug 893910
Opened 12 years ago
Closed 12 years ago
Current day failure count in data submission does not reset after 24-hour period
Categories
(Android Background Services Graveyard :: Firefox Health Report Service, defect)
Android Background Services Graveyard
Firefox Health Report Service
ARM
Android
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: mcomella, Assigned: mcomella)
Details
Attachments
(1 file)
6.88 KB,
patch
|
mcomella
:
review+
|
Details | Diff | Splinter Review |
The code in SubmissionPolicy.tick(...) (https://mxr.mozilla.org/mozilla-central/source/mobile/android/base/background/healthreport/upload/SubmissionPolicy.java#64) stores the current day failure count in the SharedPreferences (https://mxr.mozilla.org/mozilla-central/source/mobile/android/base/background/healthreport/upload/SubmissionPolicy.java#286), persisting the value beyond the process' lifetime, but never checks if the argument localtime is 24 hours past the initial submission time (which can occur if the process is killed or the device is turned off).
Assignee | ||
Comment 1•12 years ago
|
||
Flags: needinfo?(rnewman)
Assignee | ||
Comment 2•12 years ago
|
||
^ needinfo is to continue the review on the PR from before.
Assignee | ||
Comment 4•12 years ago
|
||
Moved r+ (see rnewman above), review via github.
Attachment #783466 -
Flags: review+
Assignee | ||
Comment 5•12 years ago
|
||
Comment 6•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•