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

Issue 735893002: Add GetConnectionInfo function for BluetoothDevice, replacing the existing (Closed)

Created:
6 years, 1 month ago by Tim Song
Modified:
5 years, 11 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, stevenjb+watch_chromium.org, hashimoto+watch_chromium.org, oshima+watch_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add GetConnectionInfo function for BluetoothDevice, replacing the existing GetRSSI, GetHostTransmitPower, and GetMaximumHostTransmitPower functions. On Mac, this function uses IOBluetooth APIs. On ChromeOS, this function is a wrapper for the GetConnInfo() DBus plugin API. On Windows, this function is unimplemented. BUG=382683 Committed: https://crrev.com/d060690f69581b758adb9b477ebe5e08acbccfa7 Cr-Commit-Position: refs/heads/master@{#310372}

Patch Set 1 #

Total comments: 28

Patch Set 2 : fixes #

Total comments: 21

Patch Set 3 : fixes #

Patch Set 4 : move if statement up a level #

Patch Set 5 : fix compile errors on other platforms #

Unified diffs Side-by-side diffs Delta from patch set Stats (+246 lines, -305 lines) Patch
M chromeos/dbus/bluetooth_device_client.h View 1 2 2 chunks +12 lines, -26 lines 0 comments Download
M chromeos/dbus/bluetooth_device_client.cc View 1 2 3 5 chunks +38 lines, -42 lines 0 comments Download
M chromeos/dbus/fake_bluetooth_device_client.h View 1 2 3 chunks +13 lines, -9 lines 0 comments Download
M chromeos/dbus/fake_bluetooth_device_client.cc View 1 2 4 chunks +23 lines, -13 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_chromeos.cc View 1 1 chunk +1 line, -3 lines 0 comments Download
M device/bluetooth/bluetooth_chromeos_unittest.cc View 1 2 2 chunks +46 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_device.h View 1 2 5 chunks +27 lines, -28 lines 0 comments Download
M device/bluetooth/bluetooth_device.cc View 1 2 1 chunk +13 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_device_chromeos.h View 1 2 5 chunks +12 lines, -13 lines 0 comments Download
M device/bluetooth/bluetooth_device_chromeos.cc View 5 chunks +29 lines, -65 lines 0 comments Download
M device/bluetooth/bluetooth_device_mac.h View 3 chunks +1 line, -5 lines 0 comments Download
M device/bluetooth/bluetooth_device_mac.mm View 1 2 3 4 3 chunks +22 lines, -30 lines 0 comments Download
M device/bluetooth/bluetooth_device_win.h View 1 2 3 chunks +2 lines, -6 lines 0 comments Download
M device/bluetooth/bluetooth_device_win.cc View 1 2 3 4 3 chunks +6 lines, -21 lines 0 comments Download
M device/bluetooth/test/mock_bluetooth_device.h View 2 chunks +1 line, -3 lines 0 comments Download
M device/bluetooth/test/mock_bluetooth_device.cc View 1 chunk +0 lines, -6 lines 0 comments Download
M extensions/browser/api/bluetooth/bluetooth_api_utils.cc View 1 chunk +0 lines, -13 lines 0 comments Download
M extensions/browser/api/bluetooth/bluetooth_apitest.cc View 1 2 3 4 1 chunk +0 lines, -5 lines 0 comments Download
M extensions/common/api/bluetooth.idl View 1 1 chunk +0 lines, -17 lines 0 comments Download

Messages

Total messages: 20 (4 generated)
Tim Song
6 years, 1 month ago (2014-11-19 00:33:37 UTC) #2
Ilya Sherman
Thanks, Tim. https://codereview.chromium.org/735893002/diff/1/chromeos/dbus/bluetooth_device_client.cc File chromeos/dbus/bluetooth_device_client.cc (right): https://codereview.chromium.org/735893002/diff/1/chromeos/dbus/bluetooth_device_client.cc#newcode22 chromeos/dbus/bluetooth_device_client.cc:22: const int kUnknownPower = 127; nit: It ...
6 years, 1 month ago (2014-11-19 22:18:08 UTC) #3
Tim Song
https://codereview.chromium.org/735893002/diff/1/chromeos/dbus/bluetooth_device_client.cc File chromeos/dbus/bluetooth_device_client.cc (right): https://codereview.chromium.org/735893002/diff/1/chromeos/dbus/bluetooth_device_client.cc#newcode22 chromeos/dbus/bluetooth_device_client.cc:22: const int kUnknownPower = 127; On 2014/11/19 22:18:07, Ilya ...
6 years ago (2014-12-06 00:51:38 UTC) #4
Ilya Sherman
LGTM, thanks.
6 years ago (2014-12-06 03:18:37 UTC) #5
Tim Song
ping keybuk
6 years ago (2014-12-11 18:16:46 UTC) #6
Tim Song
Arman, can you take a look?
5 years, 11 months ago (2015-01-06 19:29:55 UTC) #8
armansito
Also, I think you meant "IOBluetooth" instead of "CoreBluetooth" in the commit message. Please correct ...
5 years, 11 months ago (2015-01-06 20:36:08 UTC) #9
Tim Song
Thanks for the review. I also fixed the comment. https://codereview.chromium.org/735893002/diff/20001/chromeos/dbus/bluetooth_device_client.cc File chromeos/dbus/bluetooth_device_client.cc (right): https://codereview.chromium.org/735893002/diff/20001/chromeos/dbus/bluetooth_device_client.cc#newcode354 chromeos/dbus/bluetooth_device_client.cc:354: ...
5 years, 11 months ago (2015-01-06 22:30:51 UTC) #10
armansito
https://codereview.chromium.org/735893002/diff/20001/chromeos/dbus/bluetooth_device_client.cc File chromeos/dbus/bluetooth_device_client.cc (right): https://codereview.chromium.org/735893002/diff/20001/chromeos/dbus/bluetooth_device_client.cc#newcode354 chromeos/dbus/bluetooth_device_client.cc:354: success &= reader.PopInt16(&max_transmit_power); On 2015/01/06 22:30:50, Tim Song wrote: ...
5 years, 11 months ago (2015-01-06 22:39:29 UTC) #11
Tim Song
https://codereview.chromium.org/735893002/diff/20001/chromeos/dbus/bluetooth_device_client.cc File chromeos/dbus/bluetooth_device_client.cc (right): https://codereview.chromium.org/735893002/diff/20001/chromeos/dbus/bluetooth_device_client.cc#newcode354 chromeos/dbus/bluetooth_device_client.cc:354: success &= reader.PopInt16(&max_transmit_power); On 2015/01/06 22:39:29, armansito wrote: > ...
5 years, 11 months ago (2015-01-06 23:02:17 UTC) #12
armansito
lgtm
5 years, 11 months ago (2015-01-06 23:04:19 UTC) #13
Tim Song
+jyasskin@ for bluetooth.idl
5 years, 11 months ago (2015-01-07 01:35:59 UTC) #15
Jeffrey Yasskin
LGTM. I'm looking forward to having access to this data. :)
5 years, 11 months ago (2015-01-07 01:52:35 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/735893002/80001
5 years, 11 months ago (2015-01-07 21:19:27 UTC) #18
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 11 months ago (2015-01-07 21:31:57 UTC) #19
commit-bot: I haz the power
5 years, 11 months ago (2015-01-07 21:32:39 UTC) #20
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/d060690f69581b758adb9b477ebe5e08acbccfa7
Cr-Commit-Position: refs/heads/master@{#310372}

Powered by Google App Engine
This is Rietveld 408576698