Closed Bug 1174717 Opened 9 years ago Closed 9 years ago

[bluetooth2] Passing fallible when calling AppendElement method for Sequence types in bluetooth2.

Categories

(Firefox OS Graveyard :: Bluetooth, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(firefox41 fixed)

RESOLVED FIXED
FxOS-S1 (26Jun)
Tracking Status
firefox41 --- fixed

People

(Reporter: yrliou, Assigned: yrliou)

References

Details

(Whiteboard: [webbt-api])

Attachments

(1 file, 1 obsolete file)

bluetooth2 build failed since Bug 968520 landed.
We should pass fallible argument when calling AppendElement method for Sequence types used in bluetooth2.
Hi Shawn,

Please help to review my patch.

Thanks,
Jocelyn
Attachment #8622459 - Flags: review?(shuang)
Comment on attachment 8622459 [details] [diff] [review]
Bug 1174717 - Passing fallible when calling AppendElement method for Sequence types in bluetooth2.

Review of attachment 8622459 [details] [diff] [review]:
-----------------------------------------------------------------

::: dom/bluetooth/BluetoothCommon.h
@@ +131,5 @@
> +    uint32_t index = uint32_t(enumValue);                            \
> +    nsAutoString name;                                               \
> +    name.AssignASCII(enumType##Values::strings[index].value,         \
> +                     enumType##Values::strings[index].length);       \
> +    array.AppendElement(name, fallible);                             \

Can we write |mozilla::fallible|? That would be easier to understand.
Attachment #8622459 - Flags: review?(shuang) → review+
No try server result since bluetooth2 won't be built on try server.
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/62c57bdc3364
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → NGA S3 (26Jun)
As NGA Program Manager suggested, let's replace the NGA-Sx milestones with FxOS-Sx ones (more generic ones), once Bug 1174794 has already landed
Target Milestone: NGA S3 (26Jun) → FxOS-S1 (26Jun)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: