Closed
Bug 1105308
Opened 11 years ago
Closed 11 years ago
[Bluetooth] Cleanup BluetoothUtils.{cpp,h}
Categories
(Firefox OS Graveyard :: Bluetooth, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: tzimmermann, Assigned: tzimmermann)
References
Details
Attachments
(3 files)
|
7.66 KB,
patch
|
ben.tian
:
review+
|
Details | Diff | Splinter Review |
|
3.30 KB,
patch
|
ben.tian
:
review+
|
Details | Diff | Splinter Review |
|
13.74 KB,
patch
|
ben.tian
:
review+
|
Details | Diff | Splinter Review |
There are two files named BluetoothUtils.{cpp,h}; for BlueZ and Bluedroid backends respectively. The content of these files is mostly the same.
We should merge the backend-independent code into a single file and move it out of the backend directories.
| Assignee | ||
Comment 1•11 years ago
|
||
Attachment #8529114 -
Flags: review?(btian)
| Assignee | ||
Comment 2•11 years ago
|
||
Attachment #8529115 -
Flags: review?(btian)
| Assignee | ||
Comment 3•11 years ago
|
||
Attachment #8529116 -
Flags: review?(btian)
Comment 4•11 years ago
|
||
Comment on attachment 8529114 [details] [diff] [review]
[01] Bug 1105308: Cleanup non-shared functions in BlueZ' BluetoothUtils.{cpp,h}
Review of attachment 8529114 [details] [diff] [review]:
-----------------------------------------------------------------
LGTM.
Attachment #8529114 -
Flags: review?(btian) → review+
Comment 5•11 years ago
|
||
Comment on attachment 8529115 [details] [diff] [review]
[02] Bug 1105308: Cleanup non-shared functions in Bluedroid's BluetoothUtils.{cpp,h}
Review of attachment 8529115 [details] [diff] [review]:
-----------------------------------------------------------------
LGTM.
Attachment #8529115 -
Flags: review?(btian) → review+
Comment 6•11 years ago
|
||
Comment on attachment 8529116 [details] [diff] [review]
[03] Bug 1105308: Merge BluetoothUtils.{cpp,h}
Review of attachment 8529116 [details] [diff] [review]:
-----------------------------------------------------------------
r=me with nit addressed.
::: dom/bluetooth/BluetoothUtils.h
@@ +4,5 @@
> * License, v. 2.0. If a copy of the MPL was not distributed with this file,
> * You can obtain one at http://mozilla.org/MPL/2.0/. */
>
> +#ifndef mozilla_dom_bluetooth_bluetoothutils_h
> +#define mozilla_dom_bluetooth_bluetoothutils_h
nit: add back '__' at the end.
Attachment #8529116 -
Flags: review?(btian) → review+
| Assignee | ||
Comment 7•11 years ago
|
||
(In reply to Ben Tian [:btian] from comment #6)
> Comment on attachment 8529116 [details] [diff] [review]
> [03] Bug 1105308: Merge BluetoothUtils.{cpp,h}
>
> Review of attachment 8529116 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> r=me with nit addressed.
>
> ::: dom/bluetooth/BluetoothUtils.h
> @@ +4,5 @@
> > * License, v. 2.0. If a copy of the MPL was not distributed with this file,
> > * You can obtain one at http://mozilla.org/MPL/2.0/. */
> >
> > +#ifndef mozilla_dom_bluetooth_bluetoothutils_h
> > +#define mozilla_dom_bluetooth_bluetoothutils_h
>
> nit: add back '__' at the end.
May I ask why? The underscores violate Mozilla's style guide.
Comment 8•11 years ago
|
||
(In reply to Thomas Zimmermann [:tzimmermann] [:tdz] from comment #7)
> > ::: dom/bluetooth/BluetoothUtils.h
> > @@ +4,5 @@
> > > * License, v. 2.0. If a copy of the MPL was not distributed with this file,
> > > * You can obtain one at http://mozilla.org/MPL/2.0/. */
> > >
> > > +#ifndef mozilla_dom_bluetooth_bluetoothutils_h
> > > +#define mozilla_dom_bluetooth_bluetoothutils_h
> >
> > nit: add back '__' at the end.
> May I ask why? The underscores violate Mozilla's style guide.
You are right. I just realize all other headers should be fixed as well. Please keep the change and open another follow-up bug to revise all headers under bluetooth/ and bluetooth2/ folders. Thanks.
| Assignee | ||
Comment 9•11 years ago
|
||
OK, done so: bug 1106007.
| Assignee | ||
Comment 10•11 years ago
|
||
Comment 11•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/d359d36fbaa8
https://hg.mozilla.org/mozilla-central/rev/6230fb3f608a
https://hg.mozilla.org/mozilla-central/rev/10ecf1e770b1
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
•