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

Issue 1902153003: bluetooth: Move connect/disconnect to mojo (Closed)

Created:
4 years, 8 months ago by ortuno
Modified:
4 years, 7 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, haraken, jam, 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-separate-connection-tests
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

bluetooth: Move connect/disconnect to mojo This change also adds a new BluetoothConnectedDevicesMap class to keep track of connected devices. This class was abstracted from BluetoothDispatcherHost. BUG=508771 Committed: https://crrev.com/b6c45d4f0ad3d8ec7fd89b87b0f53fdf12cda55d Cr-Commit-Position: refs/heads/master@{#392244}

Patch Set 1 #

Patch Set 2 : Clean up #

Patch Set 3 : Unit tests! #

Patch Set 4 : Merge #

Patch Set 5 : Merge #

Patch Set 6 : Clean up #

Patch Set 7 : Moar clean up #

Patch Set 8 : Moar clean up #

Total comments: 24

Patch Set 9 : Address jyasskin's comments #

Total comments: 6

Patch Set 10 : Address jyasskin's comments #

Patch Set 11 : Remove connection messages from bluetooth_messages.h #

Patch Set 12 : Fix gypi #

Unified diffs Side-by-side diffs Delta from patch set Stats (+753 lines, -358 lines) Patch
M content/browser/bluetooth/bluetooth_dispatcher_host.h View 1 2 3 4 5 6 chunks +0 lines, -55 lines 0 comments Download
M content/browser/bluetooth/bluetooth_dispatcher_host.cc View 1 2 3 4 5 6 7 8 9 10 11 10 chunks +0 lines, -229 lines 0 comments Download
A content/browser/bluetooth/frame_connected_bluetooth_devices.h View 1 2 3 4 5 6 7 8 9 1 chunk +79 lines, -0 lines 0 comments Download
A content/browser/bluetooth/frame_connected_bluetooth_devices.cc View 1 2 3 4 5 6 7 8 9 1 chunk +109 lines, -0 lines 0 comments Download
A content/browser/bluetooth/frame_connected_bluetooth_devices_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +357 lines, -0 lines 0 comments Download
M content/browser/bluetooth/web_bluetooth_service_impl.h View 1 2 3 4 5 6 7 8 6 chunks +23 lines, -0 lines 0 comments Download
M content/browser/bluetooth/web_bluetooth_service_impl.cc View 1 2 3 4 5 6 7 8 9 7 chunks +149 lines, -0 lines 0 comments Download
M content/common/bluetooth/bluetooth_messages.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +0 lines, -24 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -0 lines 0 comments Download
M content/renderer/bluetooth/bluetooth_dispatcher.h View 3 chunks +0 lines, -12 lines 0 comments Download
M content/renderer/bluetooth/bluetooth_dispatcher.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +0 lines, -36 lines 0 comments Download
M content/renderer/bluetooth/web_bluetooth_impl.h View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M content/renderer/bluetooth/web_bluetooth_impl.cc View 1 2 3 4 5 2 chunks +17 lines, -2 lines 0 comments Download
M content/test/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/public/platform/modules/bluetooth/web_bluetooth.mojom View 1 2 3 4 5 1 chunk +10 lines, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 24 (10 generated)
ortuno
jyasskin: PTAL
4 years, 7 months ago (2016-04-28 23:02:15 UTC) #3
Jeffrey Yasskin
https://codereview.chromium.org/1902153003/diff/140001/content/browser/bluetooth/bluetooth_connected_devices_map.cc File content/browser/bluetooth/bluetooth_connected_devices_map.cc (right): https://codereview.chromium.org/1902153003/diff/140001/content/browser/bluetooth/bluetooth_connected_devices_map.cc#newcode58 content/browser/bluetooth/bluetooth_connected_devices_map.cc:58: // A frame should never try to connect to ...
4 years, 7 months ago (2016-05-03 01:15:57 UTC) #5
ortuno
https://codereview.chromium.org/1902153003/diff/140001/content/browser/bluetooth/bluetooth_connected_devices_map.cc File content/browser/bluetooth/bluetooth_connected_devices_map.cc (right): https://codereview.chromium.org/1902153003/diff/140001/content/browser/bluetooth/bluetooth_connected_devices_map.cc#newcode58 content/browser/bluetooth/bluetooth_connected_devices_map.cc:58: // A frame should never try to connect to ...
4 years, 7 months ago (2016-05-03 16:11:54 UTC) #6
Jeffrey Yasskin
lgtm https://codereview.chromium.org/1902153003/diff/140001/content/browser/bluetooth/bluetooth_connected_devices_map.cc File content/browser/bluetooth/bluetooth_connected_devices_map.cc (right): https://codereview.chromium.org/1902153003/diff/140001/content/browser/bluetooth/bluetooth_connected_devices_map.cc#newcode58 content/browser/bluetooth/bluetooth_connected_devices_map.cc:58: // A frame should never try to connect ...
4 years, 7 months ago (2016-05-03 16:31:33 UTC) #7
ortuno
Thanks! https://codereview.chromium.org/1902153003/diff/160001/content/browser/bluetooth/frame_connected_bluetooth_devices.cc File content/browser/bluetooth/frame_connected_bluetooth_devices.cc (right): https://codereview.chromium.org/1902153003/diff/160001/content/browser/bluetooth/frame_connected_bluetooth_devices.cc#newcode83 content/browser/bluetooth/frame_connected_bluetooth_devices.cc:83: CHECK(device_id_to_connection_map_.erase(device_id)); On 2016/05/03 at 16:31:32, Jeffrey Yasskin wrote: ...
4 years, 7 months ago (2016-05-03 16:54:39 UTC) #8
ortuno
nick: PTAL at content/test/BUILD.gn and, since you've reviewed some of my connection patches in the ...
4 years, 7 months ago (2016-05-03 17:07:53 UTC) #10
ortuno
rockot: PTAL at mojo bits in web_bluetooth.mojom, web_bluetooth_impl.h/cc and web_bluetooth_service_impl.h/cc
4 years, 7 months ago (2016-05-03 20:28:05 UTC) #12
Ken Rockot(use gerrit already)
lgtm
4 years, 7 months ago (2016-05-03 20:39:30 UTC) #13
ncarter (slow)
lgtm
4 years, 7 months ago (2016-05-03 22:20:08 UTC) #14
palmer
lgtm
4 years, 7 months ago (2016-05-06 22:33:04 UTC) #15
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1902153003/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1902153003/220001
4 years, 7 months ago (2016-05-06 23:04:10 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1902153003/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1902153003/220001
4 years, 7 months ago (2016-05-07 01:06:50 UTC) #21
commit-bot: I haz the power
Committed patchset #12 (id:220001)
4 years, 7 months ago (2016-05-07 04:19:56 UTC) #22
commit-bot: I haz the power
4 years, 7 months ago (2016-05-07 04:21:09 UTC) #24
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/b6c45d4f0ad3d8ec7fd89b87b0f53fdf12cda55d
Cr-Commit-Position: refs/heads/master@{#392244}

Powered by Google App Engine
This is Rietveld 408576698