Closed
Bug 804687
Opened 13 years ago
Closed 13 years ago
[b2g-bluetooth] Remove HfpCommandThread from BluetoothHfpManager
Categories
(Core :: DOM: Device Interfaces, defect)
Tracking
()
People
(Reporter: qdot, Assigned: qdot)
References
Details
Attachments
(1 file)
|
3.37 KB,
patch
|
echou
:
review+
|
Details | Diff | Splinter Review |
BluetoothHfpManager maintains its own thread to make what used to be a blocking call that's now non-blocking. We should be able to just schedule future events for this.
Filing blocking? because this involves removal of an extra thread, and a static nsCOMPtr that shouldn't be there.
Comment 1•13 years ago
|
||
Simple fix and blocking+ to avoid having to get aurora approval.
blocking-basecamp: ? → +
| Assignee | ||
Comment 2•13 years ago
|
||
Testing this myself, but if someone else could test this patch too, that'd be great.
Attachment #674909 -
Flags: review?(echou)
| Assignee | ||
Comment 3•13 years ago
|
||
Seems to work fine on my phone.
Comment 4•13 years ago
|
||
Comment on attachment 674909 [details] [diff] [review]
Patch 1 (v1) - Remove HfpCommandThread from HfpManager
Review of attachment 674909 [details] [diff] [review]:
-----------------------------------------------------------------
Looks great! Thanks for revising this part of code. Gina has tried this patch and everything looked good. :)
::: dom/bluetooth/BluetoothHfpManager.cpp
@@ +180,2 @@
>
> + if(sStopSendingRingFlag) {
Nit: needs an additional space after 'if'
@@ +183,3 @@
> }
>
> + if(!gBluetoothHfpManager) {
Nit: needs an additional space after 'if'
@@ +184,5 @@
>
> + if(!gBluetoothHfpManager) {
> + NS_WARNING("BluetoothHfpManager no longer exists, cannot send ring!");
> + return;
> + }
Nit: trailing space
@@ +185,5 @@
> + if(!gBluetoothHfpManager) {
> + NS_WARNING("BluetoothHfpManager no longer exists, cannot send ring!");
> + return;
> + }
> + gBluetoothHfpManager->SendLine("RING");
Nit: trailing space
Attachment #674909 -
Flags: review?(echou) → review+
| Assignee | ||
Comment 5•13 years ago
|
||
Comment 6•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Flags: in-testsuite-
Resolution: --- → FIXED
Target Milestone: --- → mozilla19
Comment 7•13 years ago
|
||
status-firefox18:
--- → fixed
status-firefox19:
--- → fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•