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

Issue 14487002: Bluetooth: Profile support for Chrome OS (Closed)

Created:
7 years, 8 months ago by keybuk
Modified:
7 years, 7 months ago
Reviewers:
youngki, satorux1
CC:
chromium-reviews, deymo
Visibility:
Public.

Description

Bluetooth: Profile support for Chrome OS Implement support for the BluetoothProfile API for the BlueZ 5.x stack on Chrome OS, including BluetoothSocket support. BUG=229636 TEST=device_unittests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=199095

Patch Set 1 #

Total comments: 12

Patch Set 2 : Address review comments #

Patch Set 3 : Add ConnectToProfile() implementation #

Patch Set 4 : Pass data() to read and write #

Patch Set 5 : Update based on 14311007. Validate fd received from D-Bus. Fix double callback bug. #

Patch Set 6 : Transfer out ownership of fd. Fix socket code #

Total comments: 4

Patch Set 7 : Use scoped_ptr and base::Passed() #

Total comments: 1

Patch Set 8 : Handle EINTR. Detect disconnection during Receive and Send #

Total comments: 3

Patch Set 9 : Add unit tests, and class comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1363 lines, -24 lines) Patch
M chromeos/dbus/experimental_bluetooth_profile_service_provider.h View 1 2 3 4 5 6 2 chunks +10 lines, -6 lines 0 comments Download
M chromeos/dbus/experimental_bluetooth_profile_service_provider.cc View 1 2 3 4 5 6 2 chunks +3 lines, -5 lines 0 comments Download
M chromeos/dbus/fake_bluetooth_device_client.h View 1 2 3 4 5 6 7 8 2 chunks +12 lines, -0 lines 0 comments Download
M chromeos/dbus/fake_bluetooth_device_client.cc View 1 2 3 4 5 6 7 8 6 chunks +151 lines, -2 lines 0 comments Download
M chromeos/dbus/fake_bluetooth_profile_manager_client.h View 1 2 3 4 5 6 7 8 3 chunks +32 lines, -0 lines 0 comments Download
M chromeos/dbus/fake_bluetooth_profile_manager_client.cc View 1 2 3 4 5 6 7 8 4 chunks +64 lines, -2 lines 0 comments Download
M chromeos/dbus/fake_bluetooth_profile_service_provider.h View 1 2 3 4 5 6 7 8 3 chunks +4 lines, -1 line 0 comments Download
M chromeos/dbus/fake_bluetooth_profile_service_provider.cc View 1 2 3 4 5 6 7 8 3 chunks +16 lines, -2 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_experimental_chromeos.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_device_experimental_chromeos.h View 1 2 3 4 5 6 7 8 1 chunk +9 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_device_experimental_chromeos.cc View 1 2 3 4 5 6 7 8 3 chunks +42 lines, -2 lines 0 comments Download
M device/bluetooth/bluetooth_profile.cc View 1 2 3 4 5 6 7 8 2 chunks +13 lines, -4 lines 0 comments Download
A device/bluetooth/bluetooth_profile_chromeos_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +364 lines, -0 lines 0 comments Download
A device/bluetooth/bluetooth_profile_experimental_chromeos.h View 1 2 3 4 5 6 7 8 1 chunk +132 lines, -0 lines 0 comments Download
A device/bluetooth/bluetooth_profile_experimental_chromeos.cc View 1 2 3 4 5 6 7 1 chunk +259 lines, -0 lines 0 comments Download
A device/bluetooth/bluetooth_socket_experimental_chromeos.h View 1 2 3 4 5 6 7 8 1 chunk +75 lines, -0 lines 0 comments Download
A device/bluetooth/bluetooth_socket_experimental_chromeos.cc View 1 2 3 4 5 6 7 8 1 chunk +170 lines, -0 lines 0 comments Download
M device/device.gyp View 1 2 3 4 5 6 7 8 3 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
keybuk
youngki: here's a first stab for the new Chrome OS stack I fixed BluetoothProfile's constructor ...
7 years, 8 months ago (2013-04-24 23:30:18 UTC) #1
youngki
https://chromiumcodereview.appspot.com/14487002/diff/1/device/bluetooth/bluetooth_profile.cc File device/bluetooth/bluetooth_profile.cc (right): https://chromiumcodereview.appspot.com/14487002/diff/1/device/bluetooth/bluetooth_profile.cc#newcode56 device/bluetooth/bluetooth_profile.cc:56: #endif We should run callback.Run(NULL) for #else. https://chromiumcodereview.appspot.com/14487002/diff/1/device/bluetooth/bluetooth_profile_experimental_chromeos.cc File ...
7 years, 8 months ago (2013-04-25 14:34:34 UTC) #2
keybuk
https://chromiumcodereview.appspot.com/14487002/diff/1/device/bluetooth/bluetooth_profile.cc File device/bluetooth/bluetooth_profile.cc (right): https://chromiumcodereview.appspot.com/14487002/diff/1/device/bluetooth/bluetooth_profile.cc#newcode56 device/bluetooth/bluetooth_profile.cc:56: #endif On 2013/04/25 14:34:34, youngki wrote: > We should ...
7 years, 8 months ago (2013-04-25 17:16:41 UTC) #3
youngki
lgtm
7 years, 8 months ago (2013-04-26 03:51:18 UTC) #4
keybuk
This latest patch set dragged in 14311007 - so ignore those pieces - that CL ...
7 years, 7 months ago (2013-04-30 18:08:46 UTC) #5
satorux1
https://codereview.chromium.org/14487002/diff/27001/device/bluetooth/bluetooth_profile_experimental_chromeos.cc File device/bluetooth/bluetooth_profile_experimental_chromeos.cc (right): https://codereview.chromium.org/14487002/diff/27001/device/bluetooth/bluetooth_profile_experimental_chromeos.cc#newcode158 device/bluetooth/bluetooth_profile_experimental_chromeos.cc:158: base::Owned(fd), Instead of base::Owned(), you can probably make fd ...
7 years, 7 months ago (2013-05-02 01:33:01 UTC) #6
keybuk
https://codereview.chromium.org/14487002/diff/27001/device/bluetooth/bluetooth_profile_experimental_chromeos.cc File device/bluetooth/bluetooth_profile_experimental_chromeos.cc (right): https://codereview.chromium.org/14487002/diff/27001/device/bluetooth/bluetooth_profile_experimental_chromeos.cc#newcode158 device/bluetooth/bluetooth_profile_experimental_chromeos.cc:158: base::Owned(fd), On 2013/05/02 01:33:01, satorux1 wrote: > Instead of ...
7 years, 7 months ago (2013-05-02 20:17:14 UTC) #7
youngki
lgtm https://chromiumcodereview.appspot.com/14487002/diff/34001/device/bluetooth/bluetooth_profile_experimental_chromeos.cc File device/bluetooth/bluetooth_profile_experimental_chromeos.cc (right): https://chromiumcodereview.appspot.com/14487002/diff/34001/device/bluetooth/bluetooth_profile_experimental_chromeos.cc#newcode42 device/bluetooth/bluetooth_profile_experimental_chromeos.cc:42: // Check the validity of a file descriptor ...
7 years, 7 months ago (2013-05-02 22:02:55 UTC) #8
satorux1
LGTM with requests: https://codereview.chromium.org/14487002/diff/42001/device/bluetooth/bluetooth_profile_experimental_chromeos.h File device/bluetooth/bluetooth_profile_experimental_chromeos.h (right): https://codereview.chromium.org/14487002/diff/42001/device/bluetooth/bluetooth_profile_experimental_chromeos.h#newcode33 device/bluetooth/bluetooth_profile_experimental_chromeos.h:33: class CHROMEOS_EXPORT BluetoothProfileExperimentalChromeOS class comment is ...
7 years, 7 months ago (2013-05-07 08:07:16 UTC) #9
keybuk
Have added some unit tests! Please take one last look, this is now "ready" for ...
7 years, 7 months ago (2013-05-07 23:19:39 UTC) #10
youngki
lgtm
7 years, 7 months ago (2013-05-08 20:17:46 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/keybuk@chromium.org/14487002/48001
7 years, 7 months ago (2013-05-08 20:21:30 UTC) #12
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=112446
7 years, 7 months ago (2013-05-08 22:39:51 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/keybuk@chromium.org/14487002/48001
7 years, 7 months ago (2013-05-08 22:49:34 UTC) #14
commit-bot: I haz the power
7 years, 7 months ago (2013-05-09 03:49:19 UTC) #15
Message was sent while issue was closed.
Change committed as 199095

Powered by Google App Engine
This is Rietveld 408576698