Closed
Bug 1052846
Opened 10 years ago
Closed 10 years ago
Use enums for MobileNetworkType in nsIMobileConnectionProvider.idl
Categories
(Firefox OS Graveyard :: RIL, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: anshulj, Assigned: jessica)
References
Details
Attachments
(3 files, 2 obsolete files)
8.71 KB,
patch
|
edgar
:
review+
|
Details | Diff | Splinter Review |
2.69 KB,
patch
|
jessica
:
review+
|
Details | Diff | Splinter Review |
2.65 KB,
patch
|
Details | Diff | Splinter Review |
The bug 898445 introduced the MobileNetworkType enum in the MozMobileConnection.webidl but no corresponding constants were added in nsIMobileConnectionProvider.idl. Please consider adding enums for network type for getSupportedNetworkTypes API in nsIMobileConnectionProvider.idl to strictly define the IPDL interface.
Comment 1•10 years ago
|
||
We will need to care "MobilePreferredNetworkType."
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → jjong
Assignee | ||
Comment 2•10 years ago
|
||
Hsinyi, may I have your review on the interface? Thanks.
Attachment #8522137 -
Flags: review?(htsai)
Assignee | ||
Comment 3•10 years ago
|
||
Edgar, may I have your review? Thanks.
Attachment #8522647 -
Flags: review?(echen)
Assignee | ||
Comment 4•10 years ago
|
||
Edgar, may I have your review? Thanks.
Attachment #8522648 -
Flags: review?(echen)
Updated•10 years ago
|
Attachment #8522137 -
Flags: review?(htsai) → review+
Comment 5•10 years ago
|
||
Comment on attachment 8522647 [details] [diff] [review] [final] Part 2: dom/ipc changes. r=echen Review of attachment 8522647 [details] [diff] [review]: ----------------------------------------------------------------- Looks good to me, thank you.
Attachment #8522647 -
Flags: review?(echen) → review+
Comment 6•10 years ago
|
||
Comment on attachment 8522648 [details] [diff] [review] Part 3: gonk changes, v1. Review of attachment 8522648 [details] [diff] [review]: ----------------------------------------------------------------- Thank you. ::: dom/mobileconnection/gonk/MobileConnectionService.js @@ +406,5 @@ > if (DEBUG) { > this._debug("Unknown network type: " + type); > } > + RIL.GECKO_SUPPORTED_NETWORK_TYPES_DEFAULT.split(",").forEach(aType => { > + enumNetworkTypes.push(RIL.GECKO_SUPPORTED_NETWORK_TYPES.indexOf(aType)); Please help to add comments in ril_consts.js about the items in `GECKO_SUPPORTED_NETWORK_TYPES` should be in sync with nsIMobileConnection.MOBILE_NETWORK_TYPE_*. Thank you.
Attachment #8522648 -
Flags: review?(echen) → review+
Assignee | ||
Comment 7•10 years ago
|
||
(In reply to Edgar Chen [:edgar][:echen] from comment #6) > Comment on attachment 8522648 [details] [diff] [review] > Part 3: gonk changes, v1. > > Review of attachment 8522648 [details] [diff] [review]: > ----------------------------------------------------------------- > > Thank you. > > ::: dom/mobileconnection/gonk/MobileConnectionService.js > @@ +406,5 @@ > > if (DEBUG) { > > this._debug("Unknown network type: " + type); > > } > > + RIL.GECKO_SUPPORTED_NETWORK_TYPES_DEFAULT.split(",").forEach(aType => { > > + enumNetworkTypes.push(RIL.GECKO_SUPPORTED_NETWORK_TYPES.indexOf(aType)); > > Please help to add comments in ril_consts.js about the items in > `GECKO_SUPPORTED_NETWORK_TYPES` should be in sync with > nsIMobileConnection.MOBILE_NETWORK_TYPE_*. Thank you. Will do, thanks!
Assignee | ||
Comment 8•10 years ago
|
||
aligned consts.
Attachment #8522137 -
Attachment is obsolete: true
Attachment #8523765 -
Flags: review+
Assignee | ||
Updated•10 years ago
|
Attachment #8522647 -
Attachment description: Part 2: dom/ipc changes, v1. → [final] Part 2: dom/ipc changes. r=echen
Assignee | ||
Comment 9•10 years ago
|
||
added comments for `GECKO_SUPPORTED_NETWORK_TYPES` in ril_consts.js, see review comment 6.
Attachment #8522648 -
Attachment is obsolete: true
Assignee | ||
Comment 10•10 years ago
|
||
try looks good! https://treeherder.mozilla.org/ui/#/jobs?repo=try&revision=9d751fa665fc
Assignee | ||
Comment 11•10 years ago
|
||
https://hg.mozilla.org/integration/b2g-inbound/rev/2fdfde0fb31a https://hg.mozilla.org/integration/b2g-inbound/rev/e04c1126aeb4 https://hg.mozilla.org/integration/b2g-inbound/rev/6c0d0fed9ad4
Comment 12•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/2fdfde0fb31a https://hg.mozilla.org/mozilla-central/rev/e04c1126aeb4 https://hg.mozilla.org/mozilla-central/rev/6c0d0fed9ad4
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
•