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

Issue 1427653003: bluetooth: Implement TxPower and RSSI of BluetoothAdvertisementData (Closed)

Created:
5 years, 1 month ago by ortuno
Modified:
5 years, 1 month ago
Reviewers:
palmer, scheib
CC:
blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, darin-cc_chromium.org, dglazkov+blink, jam, jochen+watch_chromium.org, mkwst+moarreviews-renderer_chromium.org, mkwst+moarreviews-shell_chromium.org, mlamouri+watch-content_chromium.org, mlamouri+watch-test-runner_chromium.org, scheib+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@my-origin
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

bluetooth: Implement TxPower and RSSI of BluetoothAdvertisementData Implements the TxPower member and RSSI member of BluetoothAdvertisementData: https://webbluetoothcg.github.io/web-bluetooth/#dom-bluetoothadvertisingdata-txpower BUG=542756 Committed: https://crrev.com/04751f481d8c83e2f1cc5630100477e51d2e2946 Cr-Commit-Position: refs/heads/master@{#357993}

Patch Set 1 #

Patch Set 2 : clean up #

Patch Set 3 : Fix typo #

Patch Set 4 : Fix webexposed test #

Total comments: 8

Patch Set 5 : Address scheib's comments #

Total comments: 1

Patch Set 6 : Clean up #

Patch Set 7 : Moar tests and int8_t IPC #

Total comments: 2

Patch Set 8 : Rename adapter, add TODO for Unknown Tx Power value #

Total comments: 6

Patch Set 9 : Change PowerValueAdapter to int8_t #

Unified diffs Side-by-side diffs Delta from patch set Stats (+379 lines, -13 lines) Patch
M content/browser/bluetooth/bluetooth_dispatcher_host.cc View 1 2 3 4 5 6 1 chunk +12 lines, -8 lines 0 comments Download
M content/common/bluetooth/bluetooth_device.h View 1 2 3 4 5 6 7 2 chunks +11 lines, -0 lines 0 comments Download
M content/common/bluetooth/bluetooth_device.cc View 1 2 3 4 5 6 4 chunks +12 lines, -0 lines 0 comments Download
M content/common/bluetooth/bluetooth_messages.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/bluetooth/bluetooth_dispatcher.cc View 1 2 3 4 1 chunk +3 lines, -3 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h View 1 2 3 4 5 6 7 8 1 chunk +26 lines, -0 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc View 1 2 3 4 5 6 7 8 5 chunks +71 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/advertising-data.html View 1 2 3 4 5 6 7 1 chunk +116 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 7 2 chunks +5 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/bluetooth/BluetoothAdvertisingData.h View 1 2 3 4 5 6 1 chunk +37 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/bluetooth/BluetoothAdvertisingData.cpp View 1 2 3 4 5 6 7 1 chunk +43 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/bluetooth/BluetoothAdvertisingData.idl View 1 chunk +18 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.h View 1 2 3 4 3 chunks +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.cpp View 1 2 3 4 2 chunks +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.idl View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/modules.gypi View 1 2 3 4 5 6 7 2 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/public/platform/modules/bluetooth/WebBluetoothDevice.h View 1 2 3 4 5 6 3 chunks +8 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 27 (9 generated)
ortuno
scheib: PTAL
5 years, 1 month ago (2015-10-27 19:50:42 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1427653003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1427653003/20001
5 years, 1 month ago (2015-10-27 20:36:01 UTC) #4
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: cast_shell_linux on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/71896) linux_chromium_gn_chromeos_rel on ...
5 years, 1 month ago (2015-10-27 20:47:45 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1427653003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1427653003/40001
5 years, 1 month ago (2015-10-27 21:35:13 UTC) #8
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/132091)
5 years, 1 month ago (2015-10-27 22:27:59 UTC) #10
scheib
https://codereview.chromium.org/1427653003/diff/60001/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc File content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc (right): https://codereview.chromium.org/1427653003/diff/60001/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc#newcode280 content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc:280: ON_CALL(*device, GetInquiryRSSI()).WillByDefault(Return(power)); We should return different numbers, validating the ...
5 years, 1 month ago (2015-10-29 17:37:26 UTC) #11
ortuno
https://codereview.chromium.org/1427653003/diff/60001/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc File content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc (right): https://codereview.chromium.org/1427653003/diff/60001/content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc#newcode280 content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc:280: ON_CALL(*device, GetInquiryRSSI()).WillByDefault(Return(power)); On 2015/10/29 17:37:25, scheib wrote: > We ...
5 years, 1 month ago (2015-10-29 20:21:42 UTC) #12
scheib
LGTM with comment fix https://codereview.chromium.org/1427653003/diff/80001/third_party/WebKit/public/platform/modules/bluetooth/WebBluetoothDevice.h File third_party/WebKit/public/platform/modules/bluetooth/WebBluetoothDevice.h (right): https://codereview.chromium.org/1427653003/diff/80001/third_party/WebKit/public/platform/modules/bluetooth/WebBluetoothDevice.h#newcode51 third_party/WebKit/public/platform/modules/bluetooth/WebBluetoothDevice.h:51: // since the underlying platform ...
5 years, 1 month ago (2015-10-29 20:59:13 UTC) #13
ortuno
scheib: PTAL. Changes - Moved enforcing the range to content/common/BluetoothDevice - Renamed PowerAdapter to InternalPowerAdapter ...
5 years, 1 month ago (2015-10-29 23:59:35 UTC) #15
scheib
https://codereview.chromium.org/1427653003/diff/140001/third_party/WebKit/LayoutTests/bluetooth/advertising-data.html File third_party/WebKit/LayoutTests/bluetooth/advertising-data.html (right): https://codereview.chromium.org/1427653003/diff/140001/third_party/WebKit/LayoutTests/bluetooth/advertising-data.html#newcode10 third_party/WebKit/LayoutTests/bluetooth/advertising-data.html:10: // Tests that we are handling values returned from ...
5 years, 1 month ago (2015-10-30 01:05:24 UTC) #16
ortuno
Thanks! https://codereview.chromium.org/1427653003/diff/140001/third_party/WebKit/LayoutTests/bluetooth/advertising-data.html File third_party/WebKit/LayoutTests/bluetooth/advertising-data.html (right): https://codereview.chromium.org/1427653003/diff/140001/third_party/WebKit/LayoutTests/bluetooth/advertising-data.html#newcode10 third_party/WebKit/LayoutTests/bluetooth/advertising-data.html:10: // Tests that we are handling values returned ...
5 years, 1 month ago (2015-11-04 21:22:09 UTC) #17
ortuno
palmer: PTAL at content/common/bluetooth/bluetooth_message.h
5 years, 1 month ago (2015-11-04 21:38:48 UTC) #19
palmer
Just some minor "making sure I understand" questions. https://codereview.chromium.org/1427653003/diff/160001/content/common/bluetooth/bluetooth_device.h File content/common/bluetooth/bluetooth_device.h (right): https://codereview.chromium.org/1427653003/diff/160001/content/common/bluetooth/bluetooth_device.h#newcode24 content/common/bluetooth/bluetooth_device.h:24: int8_t ...
5 years, 1 month ago (2015-11-04 21:57:20 UTC) #20
ortuno
thanks! https://codereview.chromium.org/1427653003/diff/160001/content/common/bluetooth/bluetooth_device.h File content/common/bluetooth/bluetooth_device.h (right): https://codereview.chromium.org/1427653003/diff/160001/content/common/bluetooth/bluetooth_device.h#newcode24 content/common/bluetooth/bluetooth_device.h:24: int8_t rssi, On 2015/11/04 21:57:19, palmer wrote: > ...
5 years, 1 month ago (2015-11-04 22:45:58 UTC) #21
palmer
Thanks for the clues. LGTM.
5 years, 1 month ago (2015-11-05 01:27:05 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1427653003/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1427653003/180001
5 years, 1 month ago (2015-11-05 01:34:36 UTC) #25
commit-bot: I haz the power
Committed patchset #9 (id:180001)
5 years, 1 month ago (2015-11-05 03:45:42 UTC) #26
commit-bot: I haz the power
5 years, 1 month ago (2015-11-05 03:47:03 UTC) #27
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/04751f481d8c83e2f1cc5630100477e51d2e2946
Cr-Commit-Position: refs/heads/master@{#357993}

Powered by Google App Engine
This is Rietveld 408576698