Closed
Bug 892939
Opened 11 years ago
Closed 11 years ago
[Bluetooth] Remove PrepareAdapterTask
Categories
(Firefox OS Graveyard :: Bluetooth, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: tzimmermann, Assigned: tzimmermann)
References
Details
Attachments
(1 file)
4.75 KB,
patch
|
echou
:
review+
gyeh
:
review+
|
Details | Diff | Splinter Review |
The purpose of PrepareAdapterTask is to set a global variable on the main thread and then schedule PrepareAdapterRunnable on the Bluetooth command thread. Once bug 891866 and bug 892933 landed, PrepareAdapterRunnable will not block any longer. This will allow us to merge the code of PrepareAdapterTask into PrepareAdapterRunnable, and run PrepareAdapterRunnable directly on the main thread.
Assignee | ||
Comment 1•11 years ago
|
||
Attachment #784862 -
Flags: review?(gyeh)
Attachment #784862 -
Flags: review?(echou)
Comment 2•11 years ago
|
||
Comment on attachment 784862 [details] [diff] [review]
Bug 892939: Remove PrepareAdapterTask
Review of attachment 784862 [details] [diff] [review]:
-----------------------------------------------------------------
r=me with nit addressed.
::: dom/bluetooth/linux/BluetoothDBusService.cpp
@@ +1256,5 @@
> class PrepareAdapterRunnable : public nsRunnable
> {
> public:
> + PrepareAdapterRunnable(const nsAString& aAdapterPath)
> + : mAdapterPath(aAdapterPath)
super-nit: 2-space indentation, please.
Attachment #784862 -
Flags: review?(echou) → review+
Comment 3•11 years ago
|
||
Comment on attachment 784862 [details] [diff] [review]
Bug 892939: Remove PrepareAdapterTask
Review of attachment 784862 [details] [diff] [review]:
-----------------------------------------------------------------
Looks great. Thanks!
Attachment #784862 -
Flags: review?(gyeh) → review+
Assignee | ||
Comment 4•11 years ago
|
||
The super nit has been fixed. Thanks! :)
https://hg.mozilla.org/integration/b2g-inbound/rev/2123670ffb9d
Comment 5•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•