Closed
Bug 1044737
Opened 10 years ago
Closed 10 years ago
Pass timestamp instead in nsINetworkStatsCallback::networkStatsAvailable
Categories
(Firefox OS Graveyard :: RIL, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: vicamo, Assigned: vicamo)
References
Details
Attachments
(3 files, 1 obsolete file)
(deleted),
patch
|
vchang
:
review+
bholley
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
vchang
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
vchang
:
review+
|
Details | Diff | Splinter Review |
+++ This bug was initially created as a clone of Bug #1043830 +++
Assignee | ||
Comment 1•10 years ago
|
||
Find also in NetworkUtils::getNetworkInterfaceStats, but we never pass such command to NetworkWorker or so since bug 948743.
Assignee | ||
Comment 2•10 years ago
|
||
1) We don't depend on NetdWorker for this command anymore. /proc is always available so we don't have to check |this.shutdown| in this case.
2) Refactor the code a little bit.
Assignee: nobody → vyang
Attachment #8463240 -
Flags: review?(vchang)
Assignee | ||
Comment 3•10 years ago
|
||
Remove anything only referenced by NetworkUtils::getNetworkInterfaceStats. These should had been removed before bug 864931 was ever landed.
This patch also removes redundant fields from WebIDL dictionary NetworkCommandOptions and NetworkResultOptions.
Attachment #8463243 -
Flags: review?(vchang)
Attachment #8463243 -
Flags: review?(bobbyholley)
Assignee | ||
Comment 4•10 years ago
|
||
The interface no longer passes Date object but we still have to construct it back in NetworkStatsService.jsm because it's required by |NetworkStatsDB.normalizeDate|. Further removal of these Date objects maybe addressed in bug 1043830.
Attachment #8463245 -
Flags: review?(vchang)
Assignee | ||
Comment 5•10 years ago
|
||
Comment 6•10 years ago
|
||
Comment on attachment 8463243 [details] [diff] [review]
part 2/3: remove unused bits related to 'getNetworkInterfaceStats'
Review of attachment 8463243 [details] [diff] [review]:
-----------------------------------------------------------------
rs=me on the webidl change.
Attachment #8463243 -
Flags: review?(bobbyholley) → review+
Assignee | ||
Comment 7•10 years ago
|
||
Fix typo in XPIDL file.
Attachment #8463240 -
Attachment is obsolete: true
Attachment #8463240 -
Flags: review?(vchang)
Attachment #8463833 -
Flags: review?(vchang)
Assignee | ||
Comment 8•10 years ago
|
||
Re-try on emulator targets: https://tbpl.mozilla.org/?tree=Try&rev=7c4258b2dbf1
Updated•10 years ago
|
Attachment #8463243 -
Flags: review?(vchang) → review+
Updated•10 years ago
|
Attachment #8463245 -
Flags: review?(vchang) → review+
Comment 9•10 years ago
|
||
Comment on attachment 8463833 [details] [diff] [review]
part 1/3: don't use Date in nsINetworkStatsCallback::networkStatsAvailable : v2
Review of attachment 8463833 [details] [diff] [review]:
-----------------------------------------------------------------
Looks good.
Attachment #8463833 -
Flags: review?(vchang) → review+
Assignee | ||
Comment 10•10 years ago
|
||
Comment 11•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/e0335a065983
https://hg.mozilla.org/mozilla-central/rev/002eb34f27dc
https://hg.mozilla.org/mozilla-central/rev/ae9adb97f886
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•