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

Issue 273953002: Hook up RSSI and host transmit power Bluetooth device properties for ChromeOS. (Closed)

Created:
6 years, 7 months ago by Tim Song
Modified:
6 years, 7 months ago
Reviewers:
keybuk
CC:
chromium-reviews, stevenjb+watch_chromium.org, oshima+watch_chromium.org, mfucci_google.com
Visibility:
Public.

Description

Hook up RSSI and host transmit power Bluetooth device properties for ChromeOS. BUG=365966 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=269676

Patch Set 1 #

Patch Set 2 : #

Total comments: 20

Patch Set 3 : address comments #

Total comments: 2

Patch Set 4 : fixes #

Total comments: 4

Patch Set 5 : return unknown power for tx power if connection monitor not started #

Patch Set 6 : Start connection monitor when connected through chrome.bluetooth API #

Total comments: 3

Patch Set 7 : Remove StopConnectionMonitor and reacquire device in connect API. #

Patch Set 8 : fix adapter scoped_refptr #

Patch Set 9 : fix clang warnings, test flakiness, and bluetooth.connect should succeed even if monitor fails #

Unified diffs Side-by-side diffs Delta from patch set Stats (+247 lines, -18 lines) Patch
M chrome/browser/extensions/api/bluetooth/bluetooth_api.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/bluetooth/bluetooth_api.cc View 1 2 3 4 5 6 7 8 2 chunks +26 lines, -2 lines 0 comments Download
M chromeos/dbus/bluetooth_device_client.h View 1 2 2 chunks +29 lines, -1 line 0 comments Download
M chromeos/dbus/bluetooth_device_client.cc View 1 2 3 4 5 6 7 8 2 chunks +54 lines, -0 lines 0 comments Download
M chromeos/dbus/fake_bluetooth_device_client.h View 1 2 3 chunks +11 lines, -2 lines 0 comments Download
M chromeos/dbus/fake_bluetooth_device_client.cc View 1 2 3 4 5 6 7 8 4 chunks +22 lines, -5 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_chromeos.cc View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M device/bluetooth/bluetooth_device.h View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_device_chromeos.h View 1 2 3 4 5 6 3 chunks +14 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_device_chromeos.cc View 1 2 3 4 5 6 4 chunks +57 lines, -6 lines 0 comments Download
M device/bluetooth/bluetooth_device_mac.h View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_device_mac.mm View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_device_win.h View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_device_win.cc View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M device/bluetooth/test/mock_bluetooth_device.h View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (0 generated)
Tim Song
Please take a look.
6 years, 7 months ago (2014-05-08 23:28:13 UTC) #1
keybuk
https://codereview.chromium.org/273953002/diff/20001/DEPS File DEPS (right): https://codereview.chromium.org/273953002/diff/20001/DEPS#newcode472 DEPS:472: "@5b855c05cbbd9d4dcd7430fa58e73a296d038047", DEPS rolls are always done in separate commits ...
6 years, 7 months ago (2014-05-09 00:35:25 UTC) #2
Tim Song
https://codereview.chromium.org/273953002/diff/20001/DEPS File DEPS (right): https://codereview.chromium.org/273953002/diff/20001/DEPS#newcode472 DEPS:472: "@5b855c05cbbd9d4dcd7430fa58e73a296d038047", On 2014/05/09 00:35:25, keybuk wrote: > DEPS rolls ...
6 years, 7 months ago (2014-05-09 02:55:28 UTC) #3
keybuk
https://codereview.chromium.org/273953002/diff/20001/device/bluetooth/bluetooth_device_chromeos.cc File device/bluetooth/bluetooth_device_chromeos.cc (right): https://codereview.chromium.org/273953002/diff/20001/device/bluetooth/bluetooth_device_chromeos.cc#newcode232 device/bluetooth/bluetooth_device_chromeos.cc:232: : properties->inquiry_rssi.value(); On 2014/05/09 02:55:29, Tim Song wrote: > ...
6 years, 7 months ago (2014-05-09 18:22:07 UTC) #4
keybuk
https://codereview.chromium.org/273953002/diff/40001/device/bluetooth/bluetooth_device_chromeos.cc File device/bluetooth/bluetooth_device_chromeos.cc (right): https://codereview.chromium.org/273953002/diff/40001/device/bluetooth/bluetooth_device_chromeos.cc#newcode231 device/bluetooth/bluetooth_device_chromeos.cc:231: return IsConnected() ? properties->connection_rssi.value() : kUnknownPower; Shouldn't this be ...
6 years, 7 months ago (2014-05-09 18:27:06 UTC) #5
Tim Song
https://codereview.chromium.org/273953002/diff/20001/device/bluetooth/bluetooth_device_chromeos.cc File device/bluetooth/bluetooth_device_chromeos.cc (right): https://codereview.chromium.org/273953002/diff/20001/device/bluetooth/bluetooth_device_chromeos.cc#newcode232 device/bluetooth/bluetooth_device_chromeos.cc:232: : properties->inquiry_rssi.value(); On 2014/05/09 18:22:07, keybuk wrote: > On ...
6 years, 7 months ago (2014-05-09 19:01:35 UTC) #6
keybuk
https://codereview.chromium.org/273953002/diff/60001/device/bluetooth/bluetooth_device_chromeos.cc File device/bluetooth/bluetooth_device_chromeos.cc (right): https://codereview.chromium.org/273953002/diff/60001/device/bluetooth/bluetooth_device_chromeos.cc#newcode247 device/bluetooth/bluetooth_device_chromeos.cc:247: return IsConnected() ? properties->connection_tx_power.value() shouldn't this also be connection ...
6 years, 7 months ago (2014-05-09 19:06:38 UTC) #7
Tim Song
https://codereview.chromium.org/273953002/diff/60001/device/bluetooth/bluetooth_device_chromeos.cc File device/bluetooth/bluetooth_device_chromeos.cc (right): https://codereview.chromium.org/273953002/diff/60001/device/bluetooth/bluetooth_device_chromeos.cc#newcode247 device/bluetooth/bluetooth_device_chromeos.cc:247: return IsConnected() ? properties->connection_tx_power.value() On 2014/05/09 19:06:38, keybuk wrote: ...
6 years, 7 months ago (2014-05-09 20:08:01 UTC) #8
keybuk
lgtm
6 years, 7 months ago (2014-05-09 20:08:44 UTC) #9
Tim Song
Scott, I updated this CL to start the connection monitor for connections opened with chrome.bluetooth.connect. ...
6 years, 7 months ago (2014-05-09 22:19:23 UTC) #10
keybuk
https://codereview.chromium.org/273953002/diff/100001/chrome/browser/extensions/api/bluetooth/bluetooth_api.cc File chrome/browser/extensions/api/bluetooth/bluetooth_api.cc (right): https://codereview.chromium.org/273953002/diff/100001/chrome/browser/extensions/api/bluetooth/bluetooth_api.cc#newcode461 chrome/browser/extensions/api/bluetooth/bluetooth_api.cc:461: base::Bind(&BluetoothConnectFunction::OnSuccessCallback, this, device), You can't pass device pointers around ...
6 years, 7 months ago (2014-05-09 22:37:20 UTC) #11
Tim Song
https://codereview.chromium.org/273953002/diff/100001/device/bluetooth/bluetooth_device.h File device/bluetooth/bluetooth_device.h (right): https://codereview.chromium.org/273953002/diff/100001/device/bluetooth/bluetooth_device.h#newcode417 device/bluetooth/bluetooth_device.h:417: On 2014/05/09 22:37:21, keybuk wrote: > NAK... we've been ...
6 years, 7 months ago (2014-05-09 23:10:42 UTC) #12
keybuk
lgtm
6 years, 7 months ago (2014-05-10 02:15:06 UTC) #13
Tim Song
The CQ bit was checked by tengs@chromium.org
6 years, 7 months ago (2014-05-10 04:32:24 UTC) #14
Tim Song
The CQ bit was unchecked by tengs@chromium.org
6 years, 7 months ago (2014-05-10 04:32:25 UTC) #15
Tim Song
The CQ bit was checked by tengs@chromium.org
6 years, 7 months ago (2014-05-10 04:32:40 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tengs@chromium.org/273953002/170001
6 years, 7 months ago (2014-05-10 04:35:47 UTC) #17
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-10 06:18:43 UTC) #18
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-10 07:14:46 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_chromeos_rel/builds/25346)
6 years, 7 months ago (2014-05-10 07:14:46 UTC) #20
Tim Song
The CQ bit was checked by tengs@chromium.org
6 years, 7 months ago (2014-05-10 07:32:39 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tengs@chromium.org/273953002/140001
6 years, 7 months ago (2014-05-10 07:33:27 UTC) #22
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-10 09:02:28 UTC) #23
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-10 10:00:53 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_chromeos_rel/builds/25353)
6 years, 7 months ago (2014-05-10 10:00:54 UTC) #25
Tim Song
The CQ bit was checked by tengs@chromium.org
6 years, 7 months ago (2014-05-10 22:23:36 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tengs@chromium.org/273953002/190001
6 years, 7 months ago (2014-05-10 22:24:55 UTC) #27
commit-bot: I haz the power
6 years, 7 months ago (2014-05-11 01:26:22 UTC) #28
Message was sent while issue was closed.
Change committed as 269676

Powered by Google App Engine
This is Rietveld 408576698