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

Issue 2510323002: bluetooth: Implement acceptAllDevices (Closed)

Created:
4 years, 1 month ago by ortuno
Modified:
4 years ago
CC:
Aaron Boodman, abarth-chromium, asvitkine+watch_chromium.org, blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, darin (slow to review), darin-cc_chromium.org, dglazkov+blink, einbinder+watch-test-runner_chromium.org, haraken, jam, jochen+watch_chromium.org, mlamouri+watch-test-runner_chromium.org, mlamouri+watch-content_chromium.org, ortuno+watch_chromium.org, Peter Beverloo, qsr+mojo_chromium.org, scheib+watch_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

bluetooth: Implement acceptAllDevices When acceptAllDevices is true the chooser will show all devices in range. BUG=654918 Committed: https://crrev.com/cfcd3337a6ede677e625c08f10417569c94d46a6 Cr-Commit-Position: refs/heads/master@{#436209}

Patch Set 1 #

Patch Set 2 : Clean up #

Total comments: 14

Patch Set 3 : Address scheib's comments #

Patch Set 4 : Fix merge conflicts #

Patch Set 5 : Fix mac #

Total comments: 3

Patch Set 6 : Fix histograms #

Patch Set 7 : Rebase (now uses stl containers) #

Total comments: 2

Patch Set 8 : clean up #

Unified diffs Side-by-side diffs Delta from patch set Stats (+333 lines, -99 lines) Patch
M content/browser/bad_message.h View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M content/browser/bluetooth/bluetooth_allowed_devices_map.cc View 1 2 3 4 5 6 1 chunk +10 lines, -7 lines 0 comments Download
M content/browser/bluetooth/bluetooth_allowed_devices_map_unittest.cc View 1 2 3 4 5 6 10 chunks +22 lines, -12 lines 0 comments Download
M content/browser/bluetooth/bluetooth_device_chooser_controller.cc View 1 2 3 4 5 6 7 6 chunks +55 lines, -27 lines 0 comments Download
M content/browser/bluetooth/bluetooth_metrics.cc View 1 2 3 4 5 6 2 chunks +15 lines, -7 lines 0 comments Download
M content/renderer/bluetooth/bluetooth_type_converters.cc View 1 2 3 4 5 6 7 1 chunk +10 lines, -3 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h View 1 2 3 1 chunk +12 lines, -0 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc View 1 2 3 2 chunks +26 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/requestDevice/acceptAllDevices/device-with-empty-name.html View 1 chunk +15 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/requestDevice/acceptAllDevices/device-with-name.html View 1 1 chunk +16 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/requestDevice/acceptAllDevices/device-with-no-name.html View 1 chunk +15 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/requestDevice/acceptAllDevices/device-with-uuids.html View 1 chunk +15 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/requestDevice/acceptAllDevices/optional-services-missing.html View 1 2 1 chunk +20 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/requestDevice/acceptAllDevices/optional-services-present.html View 1 2 1 chunk +23 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/requestDevice/canonicalizeFilter/filters-xor-acceptAllDevices.html View 1 2 1 chunk +28 lines, -0 lines 0 comments Download
D third_party/WebKit/LayoutTests/bluetooth/requestDevice/canonicalizeFilter/no-filters-member.html View 1 chunk +0 lines, -21 lines 0 comments Download
M third_party/WebKit/Source/modules/bluetooth/Bluetooth.cpp View 1 2 3 4 3 chunks +30 lines, -19 lines 0 comments Download
M third_party/WebKit/Source/modules/bluetooth/RequestDeviceOptions.idl View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/public/platform/modules/bluetooth/WebRequestDeviceOptions.h View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/public/platform/modules/bluetooth/web_bluetooth.mojom View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 2 chunks +13 lines, -0 lines 0 comments Download

Messages

Total messages: 52 (32 generated)
ortuno
scheib: PTAL
4 years, 1 month ago (2016-11-18 05:17:51 UTC) #4
ortuno
ping?
4 years, 1 month ago (2016-11-22 03:34:24 UTC) #7
haraken
https://codereview.chromium.org/2510323002/diff/20001/third_party/WebKit/Source/modules/bluetooth/Bluetooth.cpp File third_party/WebKit/Source/modules/bluetooth/Bluetooth.cpp (right): https://codereview.chromium.org/2510323002/diff/20001/third_party/WebKit/Source/modules/bluetooth/Bluetooth.cpp#newcode114 third_party/WebKit/Source/modules/bluetooth/Bluetooth.cpp:114: if (options.filters().isEmpty()) { Is it possible that isEmpty returns ...
4 years, 1 month ago (2016-11-22 03:58:42 UTC) #9
ortuno
https://codereview.chromium.org/2510323002/diff/20001/third_party/WebKit/Source/modules/bluetooth/Bluetooth.cpp File third_party/WebKit/Source/modules/bluetooth/Bluetooth.cpp (right): https://codereview.chromium.org/2510323002/diff/20001/third_party/WebKit/Source/modules/bluetooth/Bluetooth.cpp#newcode114 third_party/WebKit/Source/modules/bluetooth/Bluetooth.cpp:114: if (options.filters().isEmpty()) { On 2016/11/22 at 03:58:42, haraken wrote: ...
4 years, 1 month ago (2016-11-22 04:00:12 UTC) #10
scheib
https://codereview.chromium.org/2510323002/diff/20001/content/browser/bluetooth/bluetooth_device_chooser_controller.cc File content/browser/bluetooth/bluetooth_device_chooser_controller.cc (right): https://codereview.chromium.org/2510323002/diff/20001/content/browser/bluetooth/bluetooth_device_chooser_controller.cc#newcode122 content/browser/bluetooth/bluetooth_device_chooser_controller.cc:122: (options->filters.is_null() && !options->accept_all_devices)) { 122 is redundant with 125,126 ...
4 years ago (2016-11-22 21:22:44 UTC) #11
ortuno
https://codereview.chromium.org/2510323002/diff/20001/content/browser/bluetooth/bluetooth_device_chooser_controller.cc File content/browser/bluetooth/bluetooth_device_chooser_controller.cc (right): https://codereview.chromium.org/2510323002/diff/20001/content/browser/bluetooth/bluetooth_device_chooser_controller.cc#newcode122 content/browser/bluetooth/bluetooth_device_chooser_controller.cc:122: (options->filters.is_null() && !options->accept_all_devices)) { On 2016/11/22 at 21:22:44, scheib ...
4 years ago (2016-11-23 06:03:08 UTC) #12
scheib
LGTM, OK to leave hasFilters
4 years ago (2016-11-23 17:13:51 UTC) #17
ortuno
nick: PTAL a content/browser/bad_message.h isherman: PTAL at t/m/h/histograms.xml
4 years ago (2016-11-23 21:55:36 UTC) #19
ncarter (slow)
bad_message and its point of use lgtm
4 years ago (2016-11-23 22:00:08 UTC) #20
Ilya Sherman
https://codereview.chromium.org/2510323002/diff/80001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2510323002/diff/80001/tools/metrics/histograms/histograms.xml#newcode4834 tools/metrics/histograms/histograms.xml:4834: + enum="Boolean"> Please provide a custom boolean enum, with ...
4 years ago (2016-11-29 03:21:40 UTC) #29
ortuno
https://codereview.chromium.org/2510323002/diff/80001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2510323002/diff/80001/tools/metrics/histograms/histograms.xml#newcode4834 tools/metrics/histograms/histograms.xml:4834: + enum="Boolean"> On 2016/11/29 at 03:21:40, Ilya Sherman wrote: ...
4 years ago (2016-11-29 04:48:10 UTC) #30
Ilya Sherman
metrics lgtm https://codereview.chromium.org/2510323002/diff/80001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2510323002/diff/80001/tools/metrics/histograms/histograms.xml#newcode4834 tools/metrics/histograms/histograms.xml:4834: + enum="Boolean"> On 2016/11/29 04:48:10, ortuno wrote: ...
4 years ago (2016-11-29 04:54:15 UTC) #35
ortuno
scheib: PTAL again since we've changed to stl containers. dcheng: Security review please.
4 years ago (2016-11-30 23:32:03 UTC) #36
scheib
LGTM
4 years ago (2016-12-01 03:52:30 UTC) #41
ortuno
dcheng: Security review for mojom and type_converter please.
4 years ago (2016-12-02 20:57:35 UTC) #43
dcheng
mojo lgtm https://codereview.chromium.org/2510323002/diff/120001/content/renderer/bluetooth/bluetooth_type_converters.cc File content/renderer/bluetooth/bluetooth_type_converters.cc (right): https://codereview.chromium.org/2510323002/diff/120001/content/renderer/bluetooth/bluetooth_type_converters.cc#newcode46 content/renderer/bluetooth/bluetooth_type_converters.cc:46: options->filters = base::make_optional( I think it would ...
4 years ago (2016-12-03 01:23:00 UTC) #44
ortuno
Thanks! https://codereview.chromium.org/2510323002/diff/120001/content/renderer/bluetooth/bluetooth_type_converters.cc File content/renderer/bluetooth/bluetooth_type_converters.cc (right): https://codereview.chromium.org/2510323002/diff/120001/content/renderer/bluetooth/bluetooth_type_converters.cc#newcode46 content/renderer/bluetooth/bluetooth_type_converters.cc:46: options->filters = base::make_optional( On 2016/12/03 at 01:23:00, dcheng ...
4 years ago (2016-12-04 22:33:38 UTC) #45
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/2510323002/140001
4 years ago (2016-12-04 22:33:58 UTC) #48
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years ago (2016-12-05 00:25:14 UTC) #50
commit-bot: I haz the power
4 years ago (2016-12-05 00:27:07 UTC) #52
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/cfcd3337a6ede677e625c08f10417569c94d46a6
Cr-Commit-Position: refs/heads/master@{#436209}

Powered by Google App Engine
This is Rietveld 408576698