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

Issue 2440043002: bluetooth: bluez: GetName uses 'name' instead of 'alias'. (Closed)

Created:
4 years, 2 months ago by scheib
Modified:
4 years, 1 month ago
Reviewers:
ortuno, stevenjb
CC:
chromium-reviews, ortuno+watch_chromium.org, scheib+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

bluetooth: bluez: GetName uses 'name' instead of 'alias'. BlueZ produces an 'alias' that includes the MAC address of a remote device when the device name is unknown. Client code of device/bluetooth must be able to detect an empty name and also protect private information such as nearby MAC addresses from being shared. This patch changes our implementation to use the BlueZ provided 'name' instead of 'alias'. SimulateLowEnergyDvice(5) is implemented (crbug.com/622432) to enable testing this change. BUG=586438, 622432 Committed: https://crrev.com/667ebea934cb8baee8915753c4635bc88d8716ad Cr-Commit-Position: refs/heads/master@{#430068}

Patch Set 1 : #

Total comments: 4

Patch Set 2 : Android needs StartLowEnergyDiscoverySession; Browser test needs s/alias/name/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -45 lines) Patch
M chrome/browser/ui/webui/options/chromeos/bluetooth_options_browsertest.js View 1 2 chunks +2 lines, -2 lines 0 comments Download
M device/bluetooth/bluetooth_device_unittest.cc View 1 2 chunks +10 lines, -2 lines 0 comments Download
M device/bluetooth/bluez/bluetooth_adapter_bluez.cc View 1 chunk +1 line, -1 line 0 comments Download
M device/bluetooth/bluez/bluetooth_bluez_unittest.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M device/bluetooth/bluez/bluetooth_device_bluez.cc View 1 chunk +4 lines, -1 line 0 comments Download
M device/bluetooth/dbus/fake_bluetooth_device_client.h View 2 chunks +2 lines, -1 line 0 comments Download
M device/bluetooth/dbus/fake_bluetooth_device_client.cc View 12 chunks +35 lines, -29 lines 0 comments Download
M device/bluetooth/test/bluetooth_test_bluez.cc View 3 chunks +4 lines, -5 lines 0 comments Download

Messages

Total messages: 44 (35 generated)
scheib
PTAL https://codereview.chromium.org/2440043002/diff/100001/device/bluetooth/bluetooth_device_unittest.cc File device/bluetooth/bluetooth_device_unittest.cc (left): https://codereview.chromium.org/2440043002/diff/100001/device/bluetooth/bluetooth_device_unittest.cc#oldcode684 device/bluetooth/bluetooth_device_unittest.cc:684: StartLowEnergyDiscoverySession(); StartLowEnergyDiscoverySession() is not needed for this test, ...
4 years, 1 month ago (2016-11-03 23:48:14 UTC) #26
ortuno
lgtm with a question. https://codereview.chromium.org/2440043002/diff/100001/device/bluetooth/dbus/fake_bluetooth_device_client.cc File device/bluetooth/dbus/fake_bluetooth_device_client.cc (right): https://codereview.chromium.org/2440043002/diff/100001/device/bluetooth/dbus/fake_bluetooth_device_client.cc#newcode1775 device/bluetooth/dbus/fake_bluetooth_device_client.cc:1775: name.value_or("Invalid Device Name set in ...
4 years, 1 month ago (2016-11-04 00:05:04 UTC) #27
scheib
Thanks. :( doh, looks like I still have a tryjob failure to dig into. https://codereview.chromium.org/2440043002/diff/100001/device/bluetooth/dbus/fake_bluetooth_device_client.cc ...
4 years, 1 month ago (2016-11-04 00:13:46 UTC) #30
ortuno
Sadness. Seems like not starting a discovery session is giving some problems on Android? https://codereview.chromium.org/2440043002/diff/100001/device/bluetooth/dbus/fake_bluetooth_device_client.cc ...
4 years, 1 month ago (2016-11-04 00:15:24 UTC) #31
scheib
stevenjb PTAL as OWNER: chrome/browser/ui/webui/options/chromeos/bluetooth_options_browsertest.js
4 years, 1 month ago (2016-11-04 20:56:05 UTC) #35
stevenjb
rs lgtm
4 years, 1 month ago (2016-11-04 21:01:44 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2440043002/120001
4 years, 1 month ago (2016-11-04 22:12:20 UTC) #40
commit-bot: I haz the power
Committed patchset #2 (id:120001)
4 years, 1 month ago (2016-11-05 00:06:36 UTC) #42
commit-bot: I haz the power
4 years, 1 month ago (2016-11-05 00:10:39 UTC) #44
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/667ebea934cb8baee8915753c4635bc88d8716ad
Cr-Commit-Position: refs/heads/master@{#430068}

Powered by Google App Engine
This is Rietveld 408576698