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

Issue 2019853002: bluetooth: Use WebBluetoothDeviceId instead of string (Closed)

Created:
4 years, 6 months ago by ortuno
Modified:
4 years, 4 months ago
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, darin (slow to review), darin-cc_chromium.org, dglazkov+blink, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, ortuno+watch_chromium.org, qsr+mojo_chromium.org, scheib+watch_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@bluetooth-uuid-typemap
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

bluetooth: Use WebBluetoothDeviceId instead of string This adds more type safety to our current code and also allows us check the format of the string that we get from the renderer. Also moves the chromium variant bindings generation out of blink.gyp and into content_common_mojo_bindings.gyp. This avoids adding a dependency to content/common in blink.gyp since now the chromium bindings depend on content/common/bluetooth/web_bluetooth_device_id CQ_INCLUDE_TRYJOBS=master.tryserver.chromium.mac:mac_chromium_gyp_rel,master.tryserver.chromium.mac:mac_chromium_gyp_dbg BUG=577962 Committed: https://crrev.com/bd27a25399b274afabd4338a28c5c1f72b37c78c Committed: https://crrev.com/d0b0acd381a26f12f629092423f533d6179de0e9 Cr-Original-Commit-Position: refs/heads/master@{#405806} Cr-Commit-Position: refs/heads/master@{#409820}

Patch Set 1 #

Patch Set 2 : All tests pass! Still missing gyp 😒 and tests #

Patch Set 3 : Merge #

Patch Set 4 : Add test #

Patch Set 5 : Clean up #

Patch Set 6 : Lint #

Total comments: 47

Patch Set 7 : Address jyasskin's comments #

Total comments: 2

Patch Set 8 : Merge #

Patch Set 9 : Clean up #

Patch Set 10 : Address jyasskin's comments #

Patch Set 11 : Move BluetoothDeviceId to components/web_bluetooth #

Patch Set 12 : Make gyp work #

Patch Set 13 : Merge #

Patch Set 14 : GYP \o/ #

Patch Set 15 : Fix build #

Total comments: 2

Patch Set 16 : DEPS #

Patch Set 17 : Gn! #

Patch Set 18 : Make gyp work #

Patch Set 19 : Fix content export #

Patch Set 20 : Clean up #

Patch Set 21 : Rebase on top of another patch #

Total comments: 6

Patch Set 22 : Fix mojom dependency #

Patch Set 23 : Explicitly include web_bluetooth_device_id.h #

Patch Set 24 : Merge #

Patch Set 25 : Change to CHECK #

Patch Set 26 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+462 lines, -163 lines) Patch
M content/browser/bluetooth/bluetooth_allowed_devices_map.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +27 lines, -19 lines 0 comments Download
M content/browser/bluetooth/bluetooth_allowed_devices_map.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 6 chunks +20 lines, -32 lines 0 comments Download
M content/browser/bluetooth/bluetooth_allowed_devices_map_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 14 chunks +38 lines, -38 lines 0 comments Download
M content/browser/bluetooth/frame_connected_bluetooth_devices.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +11 lines, -7 lines 0 comments Download
M content/browser/bluetooth/frame_connected_bluetooth_devices.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 5 chunks +9 lines, -7 lines 0 comments Download
M content/browser/bluetooth/frame_connected_bluetooth_devices_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 7 chunks +12 lines, -12 lines 0 comments Download
M content/browser/bluetooth/web_bluetooth_service_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 4 chunks +7 lines, -8 lines 0 comments Download
M content/browser/bluetooth/web_bluetooth_service_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 11 chunks +17 lines, -20 lines 0 comments Download
M content/common/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +1 line, -0 lines 0 comments Download
A content/common/bluetooth/OWNERS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +8 lines, -0 lines 0 comments Download
A + content/common/bluetooth/PRESUBMIT.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +1 line, -1 line 0 comments Download
A + content/common/bluetooth/typemaps.gni View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +1 line, -1 line 0 comments Download
A content/common/bluetooth/web_bluetooth_device_id.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +58 lines, -0 lines 0 comments Download
A content/common/bluetooth/web_bluetooth_device_id.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +87 lines, -0 lines 0 comments Download
A content/common/bluetooth/web_bluetooth_device_id.typemap View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +11 lines, -0 lines 0 comments Download
A content/common/bluetooth/web_bluetooth_device_id_struct_traits.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +39 lines, -0 lines 0 comments Download
A content/common/bluetooth/web_bluetooth_device_id_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +81 lines, -0 lines 0 comments Download
M content/content_common.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +2 lines, -0 lines 0 comments Download
M content/content_common_mojo_bindings.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +3 lines, -0 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/bluetooth/web_bluetooth_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 3 chunks +5 lines, -2 lines 0 comments Download
M content/renderer/bluetooth/web_bluetooth_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 5 chunks +11 lines, -8 lines 0 comments Download
M mojo/public/tools/bindings/chromium_bindings_configuration.gni View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/public/blink.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 4 chunks +2 lines, -3 lines 0 comments Download
M third_party/WebKit/public/platform/modules/bluetooth/web_bluetooth.mojom View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 3 chunks +9 lines, -5 lines 0 comments Download

Messages

Total messages: 84 (45 generated)
ortuno
rockot: PTAL at mojo bits in content/common/. More specifically are the struct_traits/mojoms in the right ...
4 years, 6 months ago (2016-06-01 18:11:54 UTC) #3
Ken Rockot(use gerrit already)
lgtm
4 years, 6 months ago (2016-06-01 19:15:46 UTC) #4
ortuno
jyasskin: PTAL
4 years, 6 months ago (2016-06-01 19:27:00 UTC) #6
Jeffrey Yasskin
https://codereview.chromium.org/2019853002/diff/100001/content/browser/bluetooth/bluetooth_allowed_devices_map.cc File content/browser/bluetooth/bluetooth_allowed_devices_map.cc (right): https://codereview.chromium.org/2019853002/diff/100001/content/browser/bluetooth/bluetooth_allowed_devices_map.cc#newcode95 content/browser/bluetooth/bluetooth_allowed_devices_map.cc:95: return base::make_optional(id_iter->second); It'd be nice to avoid needing a ...
4 years, 6 months ago (2016-06-03 17:22:05 UTC) #7
ortuno
Thanks! https://codereview.chromium.org/2019853002/diff/100001/content/browser/bluetooth/bluetooth_allowed_devices_map.cc File content/browser/bluetooth/bluetooth_allowed_devices_map.cc (right): https://codereview.chromium.org/2019853002/diff/100001/content/browser/bluetooth/bluetooth_allowed_devices_map.cc#newcode95 content/browser/bluetooth/bluetooth_allowed_devices_map.cc:95: return base::make_optional(id_iter->second); On 2016/06/03 at 17:22:04, Jeffrey Yasskin ...
4 years, 6 months ago (2016-06-06 22:23:00 UTC) #8
Jeffrey Yasskin
lgtm https://codereview.chromium.org/2019853002/diff/100001/content/common/bluetooth/bluetooth_device_id.cc File content/common/bluetooth/bluetooth_device_id.cc (right): https://codereview.chromium.org/2019853002/diff/100001/content/common/bluetooth/bluetooth_device_id.cc#newcode21 content/common/bluetooth/bluetooth_device_id.cc:21: BluetoothDeviceId::BluetoothDeviceId(const std::string& device_id) { On 2016/06/06 22:22:59, ortuno ...
4 years, 6 months ago (2016-06-06 23:44:02 UTC) #9
ortuno
rockot: Could you take another look? This is not yet finished. I still need to ...
4 years, 6 months ago (2016-06-24 17:39:43 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2019853002/200001
4 years, 6 months ago (2016-06-24 22:09:12 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2019853002/220001
4 years, 6 months ago (2016-06-24 22:12:06 UTC) #14
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_arm64_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/87013)
4 years, 6 months ago (2016-06-24 22:28:25 UTC) #16
Ken Rockot(use gerrit already)
Oops, sorry for the delay. Still LGTM. I lost track of this because I had ...
4 years, 5 months ago (2016-06-30 14:54:14 UTC) #17
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2019853002/260001
4 years, 5 months ago (2016-07-07 01:15:37 UTC) #19
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/230180)
4 years, 5 months ago (2016-07-07 01:33:10 UTC) #22
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2019853002/280001
4 years, 5 months ago (2016-07-07 01:53:23 UTC) #24
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 5 months ago (2016-07-07 03:09:47 UTC) #26
ortuno
jbroman: esprehn is OOO, would you mind taking a look at the blink part in ...
4 years, 5 months ago (2016-07-08 15:59:54 UTC) #28
jbroman
third_party/WebKit/ LGTM (but you'll need someone from public/OWNERS to land)
4 years, 5 months ago (2016-07-08 17:27:59 UTC) #29
ortuno
Thanks!
4 years, 5 months ago (2016-07-08 17:37:20 UTC) #30
dcheng
rs lgtm for //third_party/WebKit/public changes.
4 years, 5 months ago (2016-07-11 01:55:00 UTC) #32
ortuno
blundell: PTAL at inclusion of new folder in components/ jam: PTAL at content/browser/BUILD.gn, content/browser/DEPS and ...
4 years, 5 months ago (2016-07-11 16:20:05 UTC) #34
palmer
lgtm https://codereview.chromium.org/2019853002/diff/280001/components/web_bluetooth/web_bluetooth_device_id_unittest.cc File components/web_bluetooth/web_bluetooth_device_id_unittest.cc (right): https://codereview.chromium.org/2019853002/diff/280001/components/web_bluetooth/web_bluetooth_device_id_unittest.cc#newcode25 components/web_bluetooth/web_bluetooth_device_id_unittest.cc:25: TEST(WebBluetoothDeviceIdTest, DefaulConstructor) { Typo: DefaultConstructor
4 years, 5 months ago (2016-07-11 18:34:50 UTC) #35
jam
(transcribing in-person discussions) It's not clear to me that we need a new component. web_bluetooth_device_id.mojom ...
4 years, 5 months ago (2016-07-11 19:45:45 UTC) #36
ortuno
removing blundell since we no longer add a component. The latest patch set only moves ...
4 years, 5 months ago (2016-07-13 22:53:04 UTC) #48
jbroman
I'm a little confused by the gyp changes. Also, please update the CL description (it ...
4 years, 5 months ago (2016-07-14 15:14:24 UTC) #49
jam
On 2016/07/13 22:53:04, ortuno wrote: > removing blundell since we no longer add a component. ...
4 years, 5 months ago (2016-07-14 20:11:49 UTC) #52
jam
On 2016/07/14 20:11:49, jam wrote: > On 2016/07/13 22:53:04, ortuno wrote: > > removing blundell ...
4 years, 5 months ago (2016-07-14 20:29:29 UTC) #53
ortuno
ah, forgot to send drafts. https://codereview.chromium.org/2019853002/diff/400001/third_party/WebKit/public/blink.gyp File third_party/WebKit/public/blink.gyp (left): https://codereview.chromium.org/2019853002/diff/400001/third_party/WebKit/public/blink.gyp#oldcode164 third_party/WebKit/public/blink.gyp:164: '../../../device/bluetooth/bluetooth.gyp:bluetooth_mojom', On 2016/07/14 at ...
4 years, 5 months ago (2016-07-15 00:05:12 UTC) #54
jbroman
https://codereview.chromium.org/2019853002/diff/400001/third_party/WebKit/public/blink.gyp File third_party/WebKit/public/blink.gyp (right): https://codereview.chromium.org/2019853002/diff/400001/third_party/WebKit/public/blink.gyp#newcode116 third_party/WebKit/public/blink.gyp:116: 'platform/modules/bluetooth/web_bluetooth.mojom', On 2016/07/15 at 00:05:12, ortuno wrote: > On ...
4 years, 5 months ago (2016-07-15 17:10:33 UTC) #55
ortuno
https://codereview.chromium.org/2019853002/diff/400001/third_party/WebKit/public/blink.gyp File third_party/WebKit/public/blink.gyp (right): https://codereview.chromium.org/2019853002/diff/400001/third_party/WebKit/public/blink.gyp#newcode116 third_party/WebKit/public/blink.gyp:116: 'platform/modules/bluetooth/web_bluetooth.mojom', On 2016/07/15 at 17:10:33, jbroman wrote: > On ...
4 years, 5 months ago (2016-07-15 18:23:16 UTC) #56
jbroman
On 2016/07/15 at 18:23:16, ortuno wrote: > https://codereview.chromium.org/2019853002/diff/400001/third_party/WebKit/public/blink.gyp > File third_party/WebKit/public/blink.gyp (right): > > https://codereview.chromium.org/2019853002/diff/400001/third_party/WebKit/public/blink.gyp#newcode116 ...
4 years, 5 months ago (2016-07-15 18:23:54 UTC) #57
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/2019853002/440001
4 years, 5 months ago (2016-07-15 18:27:05 UTC) #60
commit-bot: I haz the power
Committed patchset #23 (id:440001)
4 years, 5 months ago (2016-07-15 19:00:45 UTC) #61
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-15 19:01:13 UTC) #62
commit-bot: I haz the power
Patchset 23 (id:??) landed as https://crrev.com/bd27a25399b274afabd4338a28c5c1f72b37c78c Cr-Commit-Position: refs/heads/master@{#405806}
4 years, 5 months ago (2016-07-15 19:03:11 UTC) #64
wjmaclean
A revert of this CL (patchset #23 id:440001) has been created in https://codereview.chromium.org/2157493003/ by wjmaclean@chromium.org. ...
4 years, 5 months ago (2016-07-15 19:44:44 UTC) #65
findit-for-me
FYI: Findit try jobs (rerunning failed compile or tests) identified this CL at revision 405806 ...
4 years, 5 months ago (2016-07-15 20:29:15 UTC) #66
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/2019853002/500001
4 years, 4 months ago (2016-08-04 17:16:20 UTC) #81
commit-bot: I haz the power
Committed patchset #26 (id:500001)
4 years, 4 months ago (2016-08-04 17:20:56 UTC) #82
commit-bot: I haz the power
4 years, 4 months ago (2016-08-04 17:22:51 UTC) #84
Message was sent while issue was closed.
Patchset 26 (id:??) landed as
https://crrev.com/d0b0acd381a26f12f629092423f533d6179de0e9
Cr-Commit-Position: refs/heads/master@{#409820}

Powered by Google App Engine
This is Rietveld 408576698