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

Issue 2009753002: bluetooth: Make public BluetoothDevice::GetName method. (Closed)

Created:
4 years, 7 months ago by scheib
Modified:
4 years, 5 months ago
CC:
chromium-apps-reviews_chromium.org, chromium-reviews, darin-cc_chromium.org, extensions-reviews_chromium.org, jam, jochen+watch_chromium.org, mkwst+moarreviews-shell_chromium.org, mlamouri+watch-content_chromium.org, mlamouri+watch-test-runner_chromium.org, ortuno+watch_chromium.org, Peter Beverloo, scheib+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

bluetooth: Make public BluetoothDevice::GetName method. This change prepares for http://crrev.com/2014473002 which will allow Web Bluetooth to filter by unnamed devices and avoid disclosing MAC addresses to web pages. GetDeviceName is moved from a protected method to a public method GetNameOrEmpty. http://crrev.com/2017393002 GetName -> GetNameForDisplay http://crrev.com/2009753002 New GetName <<< This change. http://crrev.com/2014473002 Web Bluetooth updated http://crrev.com/2020923002 Arc Bridge updated BUG=615720 Committed: https://crrev.com/dd9ce700bede9a707b4b7991ba72417c48cebce7 Cr-Commit-Position: refs/heads/master@{#406790}

Patch Set 1 #

Patch Set 2 : Merge TOT #

Patch Set 3 : #

Patch Set 4 : Mac tests #

Patch Set 5 : Merge TOT #

Total comments: 6

Patch Set 6 : make_optional && nullopt #

Patch Set 7 : bluez: Use 'alias' as before this change, instead of 'name' #

Patch Set 8 : Merge TOT #

Patch Set 9 : split out name/alias #

Unified diffs Side-by-side diffs Delta from patch set Stats (+134 lines, -142 lines) Patch
M content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc View 1 1 chunk +3 lines, -4 lines 0 comments Download
M device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothDevice.java View 1 2 chunks +6 lines, -6 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_win_unittest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M device/bluetooth/bluetooth_classic_device_mac.h View 1 2 chunks +1 line, -1 line 0 comments Download
M device/bluetooth/bluetooth_classic_device_mac.mm View 1 2 3 4 5 2 chunks +6 lines, -4 lines 0 comments Download
M device/bluetooth/bluetooth_device.h View 1 3 chunks +5 lines, -5 lines 0 comments Download
M device/bluetooth/bluetooth_device.cc View 1 2 chunks +4 lines, -4 lines 0 comments Download
M device/bluetooth/bluetooth_device_android.h View 1 2 chunks +1 line, -1 line 0 comments Download
M device/bluetooth/bluetooth_device_android.cc View 1 2 3 4 5 2 chunks +8 lines, -10 lines 0 comments Download
M device/bluetooth/bluetooth_device_unittest.cc View 1 2 3 2 chunks +6 lines, -6 lines 0 comments Download
M device/bluetooth/bluetooth_device_win.h View 1 3 chunks +2 lines, -2 lines 0 comments Download
M device/bluetooth/bluetooth_device_win.cc View 1 2 chunks +4 lines, -4 lines 0 comments Download
M device/bluetooth/bluetooth_device_win_unittest.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M device/bluetooth/bluetooth_low_energy_device_mac.h View 1 2 chunks +1 line, -1 line 0 comments Download
M device/bluetooth/bluetooth_low_energy_device_mac.mm View 1 2 3 4 5 2 chunks +6 lines, -4 lines 0 comments Download
M device/bluetooth/bluetooth_low_energy_win.h View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M device/bluetooth/bluetooth_low_energy_win.cc View 1 2 3 4 5 1 chunk +4 lines, -8 lines 0 comments Download
M device/bluetooth/bluetooth_task_manager_win.h View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M device/bluetooth/bluez/bluetooth_device_bluez.h View 1 2 2 chunks +1 line, -1 line 0 comments Download
M device/bluetooth/bluez/bluetooth_device_bluez.cc View 1 2 3 4 5 6 2 chunks +9 lines, -9 lines 0 comments Download
M device/bluetooth/test/bluetooth_test_mac.mm View 1 2 3 2 chunks +43 lines, -52 lines 0 comments Download
M device/bluetooth/test/mock_bluetooth_cbperipheral_mac.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M device/bluetooth/test/mock_bluetooth_cbperipheral_mac.mm View 1 2 3 2 chunks +6 lines, -8 lines 0 comments Download
M device/bluetooth/test/mock_bluetooth_device.h View 1 2 chunks +1 line, -1 line 0 comments Download
M device/bluetooth/test/mock_bluetooth_device.cc View 1 2 3 4 5 2 chunks +2 lines, -1 line 0 comments Download
M extensions/browser/api/bluetooth/bluetooth_apitest.cc View 1 2 3 4 2 chunks +6 lines, -4 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 86 (64 generated)
scheib
4 years, 7 months ago (2016-05-25 03:47:21 UTC) #4
ortuno
What do you think of returning an Optional? That way users of this method can ...
4 years, 7 months ago (2016-05-25 16:55:14 UTC) #5
scheib
On 2016/05/25 16:55:14, ortuno wrote: > What do you think of returning an Optional? That ...
4 years, 7 months ago (2016-05-25 18:04:27 UTC) #6
ortuno
On 2016/05/25 at 18:04:27, scheib wrote: > On 2016/05/25 16:55:14, ortuno wrote: > > What ...
4 years, 7 months ago (2016-05-25 19:27:47 UTC) #7
scheib
After in person discussion, using a return of base::Optional from GetName.
4 years, 5 months ago (2016-07-14 20:42:22 UTC) #25
ortuno
lgtm, but consider using make_optional and nullopt instead. https://codereview.chromium.org/2009753002/diff/100001/device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothDevice.java File device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothDevice.java (right): https://codereview.chromium.org/2009753002/diff/100001/device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothDevice.java#newcode110 device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothDevice.java:110: return ...
4 years, 5 months ago (2016-07-14 21:11:41 UTC) #28
scheib
Thanks, reilly would you PTAL at extensions/browser/api/bluetooth/bluetooth_apitest.cc https://codereview.chromium.org/2009753002/diff/100001/device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothDevice.java File device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothDevice.java (right): https://codereview.chromium.org/2009753002/diff/100001/device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothDevice.java#newcode110 device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothDevice.java:110: return mDevice.getName(); ...
4 years, 5 months ago (2016-07-16 00:21:36 UTC) #32
scheib
reillyg would you PTAL at extensions/browser/api/bluetooth/bluetooth_apitest.cc
4 years, 5 months ago (2016-07-16 00:22:17 UTC) #34
Reilly Grant (use Gerrit)
lgtm though I agree make_optional would be nice.
4 years, 5 months ago (2016-07-16 00:26:06 UTC) #35
scheib
stevenjb, OWNERS for dbus/property.h please. This simplifies test code to be able to set a ...
4 years, 5 months ago (2016-07-17 22:12:23 UTC) #46
scheib
Note, I've noticed a snag on Bluez --- I will need to follow up with ...
4 years, 5 months ago (2016-07-18 05:08:52 UTC) #51
stevenjb
hashimoto@, can you take a look at the change to dbus/property.h ? https://codereview.chromium.org/2009753002/diff/180001/dbus/property.h File dbus/property.h ...
4 years, 5 months ago (2016-07-18 15:35:33 UTC) #55
hashimoto
https://codereview.chromium.org/2009753002/diff/180001/dbus/property.h File dbus/property.h (right): https://codereview.chromium.org/2009753002/diff/180001/dbus/property.h#newcode437 dbus/property.h:437: set_valid(true); On 2016/07/18 15:35:32, stevenjb wrote: > +hashimoto@ for ...
4 years, 5 months ago (2016-07-19 07:56:19 UTC) #56
stevenjb
Yeah, sorry to make you jump through hoops, but since we don't have a lot ...
4 years, 5 months ago (2016-07-19 16:00:49 UTC) #57
scheib
On 2016/07/19 16:00:49, stevenjb wrote: > Yeah, sorry to make you jump through hoops, but ...
4 years, 5 months ago (2016-07-21 01:00:09 UTC) #70
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/2009753002/280001
4 years, 5 months ago (2016-07-21 01:00:57 UTC) #74
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/194187)
4 years, 5 months ago (2016-07-21 01:20:06 UTC) #76
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/2009753002/280001
4 years, 5 months ago (2016-07-21 03:55:29 UTC) #78
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/196523)
4 years, 5 months ago (2016-07-21 04:10:52 UTC) #80
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/2009753002/280001
4 years, 5 months ago (2016-07-21 05:43:19 UTC) #82
commit-bot: I haz the power
Committed patchset #9 (id:280001)
4 years, 5 months ago (2016-07-21 07:06:23 UTC) #84
commit-bot: I haz the power
4 years, 5 months ago (2016-07-21 07:07:53 UTC) #86
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/dd9ce700bede9a707b4b7991ba72417c48cebce7
Cr-Commit-Position: refs/heads/master@{#406790}

Powered by Google App Engine
This is Rietveld 408576698