Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(153)

Issue 787743002: device/bluetooth: Add BluetoothAudioSinkChromeOS. (Closed)

Created:
6 years ago by Miao
Modified:
5 years, 11 months ago
Reviewers:
armansito, Ben Chan
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

device/bluetooth: Add BluetoothAudioSinkChromeOS. This CL implements Bluetooth Audio Sink API for ChromeOS platform, where user applications can register/unregister a BT audio sink via BlueAdapter interface. This API acts as a middle layer hiding the components of BlueZ/D-Bus. BUG=441581 Committed: https://crrev.com/6ad5832b96d497beb736e521b24f698ee74c592c Cr-Commit-Position: refs/heads/master@{#312562}

Patch Set 1 #

Total comments: 40

Patch Set 2 : #

Total comments: 6

Patch Set 3 : Change copyright year and add some functions. #

Total comments: 8

Patch Set 4 : Fix nits. #

Total comments: 14

Patch Set 5 : Remove all OnAction callbacks and fill in GeneratePath function. #

Total comments: 12

Patch Set 6 : Make GenerateEndpointPath() static. #

Total comments: 6

Patch Set 7 : Move the declaration/definition ofsequence_number into GenerateEndpointPath(). #

Total comments: 2

Patch Set 8 : Remove GenerateEndpointPath(). #

Total comments: 2

Patch Set 9 : #

Patch Set 10 : Remove unused variable. #

Total comments: 8

Patch Set 11 : Fix nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+318 lines, -0 lines) Patch
M device/bluetooth/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth.gyp View 1 chunk +2 lines, -0 lines 0 comments Download
A device/bluetooth/bluetooth_audio_sink_chromeos.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +150 lines, -0 lines 0 comments Download
A device/bluetooth/bluetooth_audio_sink_chromeos.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +164 lines, -0 lines 0 comments Download

Messages

Total messages: 39 (7 generated)
Miao
6 years ago (2014-12-08 23:58:10 UTC) #2
armansito
https://codereview.chromium.org/787743002/diff/1/device/bluetooth/bluetooth_audio_sink_chromeos.cc File device/bluetooth/bluetooth_audio_sink_chromeos.cc (right): https://codereview.chromium.org/787743002/diff/1/device/bluetooth/bluetooth_audio_sink_chromeos.cc#newcode5 device/bluetooth/bluetooth_audio_sink_chromeos.cc:5: #include "device/bluetooth/bluetooth_audio_sink.h" You don't need to include this, bluetooth_audio_sink_chromeos.h ...
6 years ago (2014-12-09 00:30:28 UTC) #3
armansito
https://codereview.chromium.org/787743002/diff/1/device/bluetooth/bluetooth_audio_sink_chromeos.h File device/bluetooth/bluetooth_audio_sink_chromeos.h (right): https://codereview.chromium.org/787743002/diff/1/device/bluetooth/bluetooth_audio_sink_chromeos.h#newcode89 device/bluetooth/bluetooth_audio_sink_chromeos.h:89: BluetoothAudioSinkChromeOS(); The constructor should probably take in a pointer ...
6 years ago (2014-12-09 00:31:20 UTC) #4
armansito
https://codereview.chromium.org/787743002/diff/1/device/bluetooth/bluetooth_audio_sink_chromeos.h File device/bluetooth/bluetooth_audio_sink_chromeos.h (right): https://codereview.chromium.org/787743002/diff/1/device/bluetooth/bluetooth_audio_sink_chromeos.h#newcode67 device/bluetooth/bluetooth_audio_sink_chromeos.h:67: const device::BluetoothAudioSink::AudioSinkAcquiredCallback& callback, The name of this callback is ...
6 years ago (2014-12-09 13:30:18 UTC) #5
Ben Chan
https://codereview.chromium.org/787743002/diff/1/device/bluetooth/bluetooth_audio_sink_chromeos.cc File device/bluetooth/bluetooth_audio_sink_chromeos.cc (right): https://codereview.chromium.org/787743002/diff/1/device/bluetooth/bluetooth_audio_sink_chromeos.cc#newcode10 device/bluetooth/bluetooth_audio_sink_chromeos.cc:10: void BluetoothAudioSinkChromeOS::AddObserver( nit: try to keep the method definitions ...
6 years ago (2014-12-09 15:28:38 UTC) #6
Ben Chan
In your commit, change: BT -> Bluetooth BlueAdapter -> BluetoothAdapter
6 years ago (2014-12-09 15:29:29 UTC) #7
Miao
https://codereview.chromium.org/787743002/diff/1/device/bluetooth/bluetooth_audio_sink_chromeos.cc File device/bluetooth/bluetooth_audio_sink_chromeos.cc (right): https://codereview.chromium.org/787743002/diff/1/device/bluetooth/bluetooth_audio_sink_chromeos.cc#newcode5 device/bluetooth/bluetooth_audio_sink_chromeos.cc:5: #include "device/bluetooth/bluetooth_audio_sink.h" On 2014/12/09 00:30:28, armansito wrote: > You ...
6 years ago (2014-12-10 04:07:20 UTC) #8
armansito
I would change the commit message and title to say something like "Add BluetoothAudioSinkChromeOS" since ...
6 years ago (2014-12-16 02:01:41 UTC) #9
armansito
https://codereview.chromium.org/787743002/diff/20001/device/bluetooth/bluetooth_audio_sink_chromeos.cc File device/bluetooth/bluetooth_audio_sink_chromeos.cc (right): https://codereview.chromium.org/787743002/diff/20001/device/bluetooth/bluetooth_audio_sink_chromeos.cc#newcode1 device/bluetooth/bluetooth_audio_sink_chromeos.cc:1: // Copyright 2014 The Chromium Authors. All rights reserved. ...
5 years, 11 months ago (2015-01-07 01:13:34 UTC) #10
Miao
https://codereview.chromium.org/787743002/diff/20001/device/bluetooth/bluetooth_audio_sink_chromeos.cc File device/bluetooth/bluetooth_audio_sink_chromeos.cc (right): https://codereview.chromium.org/787743002/diff/20001/device/bluetooth/bluetooth_audio_sink_chromeos.cc#newcode1 device/bluetooth/bluetooth_audio_sink_chromeos.cc:1: // Copyright 2014 The Chromium Authors. All rights reserved. ...
5 years, 11 months ago (2015-01-17 02:02:59 UTC) #11
armansito
https://codereview.chromium.org/787743002/diff/40001/device/bluetooth/bluetooth_audio_sink_chromeos.cc File device/bluetooth/bluetooth_audio_sink_chromeos.cc (right): https://codereview.chromium.org/787743002/diff/40001/device/bluetooth/bluetooth_audio_sink_chromeos.cc#newcode1 device/bluetooth/bluetooth_audio_sink_chromeos.cc:1: // Copyright 2014 The Chromium Authors. All rights reserved. ...
5 years, 11 months ago (2015-01-17 02:09:06 UTC) #12
Miao
https://codereview.chromium.org/787743002/diff/40001/device/bluetooth/bluetooth_audio_sink_chromeos.cc File device/bluetooth/bluetooth_audio_sink_chromeos.cc (right): https://codereview.chromium.org/787743002/diff/40001/device/bluetooth/bluetooth_audio_sink_chromeos.cc#newcode1 device/bluetooth/bluetooth_audio_sink_chromeos.cc:1: // Copyright 2014 The Chromium Authors. All rights reserved. ...
5 years, 11 months ago (2015-01-17 04:09:53 UTC) #13
armansito
lgtm
5 years, 11 months ago (2015-01-17 04:21:00 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/787743002/60001
5 years, 11 months ago (2015-01-20 19:27:08 UTC) #16
Ben Chan
https://codereview.chromium.org/787743002/diff/60001/device/bluetooth/bluetooth_audio_sink_chromeos.cc File device/bluetooth/bluetooth_audio_sink_chromeos.cc (right): https://codereview.chromium.org/787743002/diff/60001/device/bluetooth/bluetooth_audio_sink_chromeos.cc#newcode15 device/bluetooth/bluetooth_audio_sink_chromeos.cc:15: adapter_(adapter) { initialize all POD member variables, e.g. |read_mtu_|, ...
5 years, 11 months ago (2015-01-20 19:29:08 UTC) #17
Miao
https://codereview.chromium.org/787743002/diff/60001/device/bluetooth/bluetooth_audio_sink_chromeos.cc File device/bluetooth/bluetooth_audio_sink_chromeos.cc (right): https://codereview.chromium.org/787743002/diff/60001/device/bluetooth/bluetooth_audio_sink_chromeos.cc#newcode15 device/bluetooth/bluetooth_audio_sink_chromeos.cc:15: adapter_(adapter) { On 2015/01/20 19:29:08, Ben Chan wrote: > ...
5 years, 11 months ago (2015-01-20 22:32:46 UTC) #20
Ben Chan
https://codereview.chromium.org/787743002/diff/80001/device/bluetooth/bluetooth_audio_sink_chromeos.cc File device/bluetooth/bluetooth_audio_sink_chromeos.cc (right): https://codereview.chromium.org/787743002/diff/80001/device/bluetooth/bluetooth_audio_sink_chromeos.cc#newcode177 device/bluetooth/bluetooth_audio_sink_chromeos.cc:177: if (sequence_number == std::numeric_limits<uint16_t>::max()) { this function should be ...
5 years, 11 months ago (2015-01-20 22:46:52 UTC) #21
armansito
https://codereview.chromium.org/787743002/diff/80001/device/bluetooth/bluetooth_audio_sink_chromeos.cc File device/bluetooth/bluetooth_audio_sink_chromeos.cc (right): https://codereview.chromium.org/787743002/diff/80001/device/bluetooth/bluetooth_audio_sink_chromeos.cc#newcode181 device/bluetooth/bluetooth_audio_sink_chromeos.cc:181: } This is unnecessary, since unsigned integer overflow has ...
5 years, 11 months ago (2015-01-20 22:47:49 UTC) #22
Miao
https://codereview.chromium.org/787743002/diff/80001/device/bluetooth/bluetooth_audio_sink_chromeos.cc File device/bluetooth/bluetooth_audio_sink_chromeos.cc (right): https://codereview.chromium.org/787743002/diff/80001/device/bluetooth/bluetooth_audio_sink_chromeos.cc#newcode177 device/bluetooth/bluetooth_audio_sink_chromeos.cc:177: if (sequence_number == std::numeric_limits<uint16_t>::max()) { On 2015/01/20 22:46:51, Ben ...
5 years, 11 months ago (2015-01-21 00:10:54 UTC) #23
armansito
https://codereview.chromium.org/787743002/diff/100001/device/bluetooth/bluetooth_audio_sink_chromeos.cc File device/bluetooth/bluetooth_audio_sink_chromeos.cc (right): https://codereview.chromium.org/787743002/diff/100001/device/bluetooth/bluetooth_audio_sink_chromeos.cc#newcode44 device/bluetooth/bluetooth_audio_sink_chromeos.cc:44: unsigned int BluetoothAudioSinkChromeOS::sequence_number = 0; nit: Add "// static" ...
5 years, 11 months ago (2015-01-21 00:25:57 UTC) #24
armansito
https://codereview.chromium.org/787743002/diff/120001/device/bluetooth/bluetooth_audio_sink_chromeos.cc File device/bluetooth/bluetooth_audio_sink_chromeos.cc (right): https://codereview.chromium.org/787743002/diff/120001/device/bluetooth/bluetooth_audio_sink_chromeos.cc#newcode45 device/bluetooth/bluetooth_audio_sink_chromeos.cc:45: unsigned int sequence_number = 0; Won't this method now ...
5 years, 11 months ago (2015-01-21 00:27:21 UTC) #25
armansito
not lgtm (might as well), since the code broke after my first approval
5 years, 11 months ago (2015-01-21 00:28:13 UTC) #26
Miao
https://codereview.chromium.org/787743002/diff/120001/device/bluetooth/bluetooth_audio_sink_chromeos.cc File device/bluetooth/bluetooth_audio_sink_chromeos.cc (right): https://codereview.chromium.org/787743002/diff/120001/device/bluetooth/bluetooth_audio_sink_chromeos.cc#newcode45 device/bluetooth/bluetooth_audio_sink_chromeos.cc:45: unsigned int sequence_number = 0; On 2015/01/21 00:27:20, armansito ...
5 years, 11 months ago (2015-01-21 01:05:10 UTC) #27
Miao
https://codereview.chromium.org/787743002/diff/140001/device/bluetooth/bluetooth_audio_sink_chromeos.cc File device/bluetooth/bluetooth_audio_sink_chromeos.cc (right): https://codereview.chromium.org/787743002/diff/140001/device/bluetooth/bluetooth_audio_sink_chromeos.cc#newcode139 device/bluetooth/bluetooth_audio_sink_chromeos.cc:139: void Register( BluetoothAudioSinkChromeOS:: https://codereview.chromium.org/787743002/diff/140001/device/bluetooth/bluetooth_audio_sink_chromeos.cc#newcode149 device/bluetooth/bluetooth_audio_sink_chromeos.cc:149: void Unregister( BluetoothAudioSinkChromeOS::
5 years, 11 months ago (2015-01-21 23:24:45 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/787743002/180001
5 years, 11 months ago (2015-01-22 02:13:22 UTC) #30
commit-bot: I haz the power
A disapproval has been posted by following reviewers: armansito@chromium.org. Please make sure to get positive ...
5 years, 11 months ago (2015-01-22 02:13:26 UTC) #32
armansito
lgtm with nits https://codereview.chromium.org/787743002/diff/180001/device/bluetooth/bluetooth_audio_sink_chromeos.cc File device/bluetooth/bluetooth_audio_sink_chromeos.cc (right): https://codereview.chromium.org/787743002/diff/180001/device/bluetooth/bluetooth_audio_sink_chromeos.cc#newcode78 device/bluetooth/bluetooth_audio_sink_chromeos.cc:78: } nit: If this is not ...
5 years, 11 months ago (2015-01-22 03:37:43 UTC) #33
Miao
https://codereview.chromium.org/787743002/diff/180001/device/bluetooth/bluetooth_audio_sink_chromeos.cc File device/bluetooth/bluetooth_audio_sink_chromeos.cc (right): https://codereview.chromium.org/787743002/diff/180001/device/bluetooth/bluetooth_audio_sink_chromeos.cc#newcode78 device/bluetooth/bluetooth_audio_sink_chromeos.cc:78: } On 2015/01/22 03:37:42, armansito wrote: > nit: If ...
5 years, 11 months ago (2015-01-22 03:45:08 UTC) #34
Ben Chan
lgtm
5 years, 11 months ago (2015-01-22 03:46:59 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/787743002/200001
5 years, 11 months ago (2015-01-22 03:47:14 UTC) #37
commit-bot: I haz the power
Committed patchset #11 (id:200001)
5 years, 11 months ago (2015-01-22 04:37:18 UTC) #38
commit-bot: I haz the power
5 years, 11 months ago (2015-01-22 04:38:14 UTC) #39
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/6ad5832b96d497beb736e521b24f698ee74c592c
Cr-Commit-Position: refs/heads/master@{#312562}

Powered by Google App Engine
This is Rietveld 408576698