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

Issue 1083163002: Expose SetDiscoveryFilter from BluetoothEventRouter (Closed)

Created:
5 years, 8 months ago by jpawlowski1
Modified:
5 years, 8 months ago
Reviewers:
armansito
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Expose SetDiscoveryFilter from BluetoothEventRouter This patch makes it possible to control BluetoothDiscoveryFilter assigned to discovery sessions through BluetoothEventRouter router. BUG=407773 R=armansito@chromium.org Committed: https://crrev.com/b51933daebb2453735df35a21519d7c4439c25fc Cr-Commit-Position: refs/heads/master@{#325557}

Patch Set 1 #

Total comments: 20

Patch Set 2 : fixes #

Total comments: 6

Patch Set 3 : Nits fixes #

Patch Set 4 : Windows build fix #

Patch Set 5 : Another windows build fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+133 lines, -8 lines) Patch
M device/bluetooth/test/mock_bluetooth_adapter.h View 1 2 3 2 chunks +9 lines, -0 lines 0 comments Download
M device/bluetooth/test/mock_bluetooth_adapter.cc View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
M extensions/browser/api/bluetooth/bluetooth_event_router.h View 3 chunks +20 lines, -0 lines 0 comments Download
M extensions/browser/api/bluetooth/bluetooth_event_router.cc View 1 2 3 4 5 chunks +64 lines, -8 lines 0 comments Download
M extensions/browser/api/bluetooth/bluetooth_event_router_unittest.cc View 1 2 chunks +32 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (8 generated)
jpawlowski1
5 years, 8 months ago (2015-04-16 19:04:48 UTC) #1
armansito
https://codereview.chromium.org/1083163002/diff/1/device/bluetooth/test/mock_bluetooth_adapter.h File device/bluetooth/test/mock_bluetooth_adapter.h (right): https://codereview.chromium.org/1083163002/diff/1/device/bluetooth/test/mock_bluetooth_adapter.h#newcode93 device/bluetooth/test/mock_bluetooth_adapter.h:93: void StartDiscoverySessionWithFilter( Why not just MOCK_METHOD here? Why do ...
5 years, 8 months ago (2015-04-16 19:13:55 UTC) #2
jpawlowski1
https://codereview.chromium.org/1083163002/diff/1/device/bluetooth/test/mock_bluetooth_adapter.h File device/bluetooth/test/mock_bluetooth_adapter.h (right): https://codereview.chromium.org/1083163002/diff/1/device/bluetooth/test/mock_bluetooth_adapter.h#newcode93 device/bluetooth/test/mock_bluetooth_adapter.h:93: void StartDiscoverySessionWithFilter( On 2015/04/16 19:13:54, armansito wrote: > Why ...
5 years, 8 months ago (2015-04-16 19:36:28 UTC) #3
armansito
lgtm with nits https://codereview.chromium.org/1083163002/diff/20001/extensions/browser/api/bluetooth/bluetooth_event_router.cc File extensions/browser/api/bluetooth/bluetooth_event_router.cc (right): https://codereview.chromium.org/1083163002/diff/20001/extensions/browser/api/bluetooth/bluetooth_event_router.cc#newcode94 extensions/browser/api/bluetooth/bluetooth_event_router.cc:94: // Check wether user pre set ...
5 years, 8 months ago (2015-04-16 21:24:03 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1083163002/40001
5 years, 8 months ago (2015-04-16 21:31:19 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1083163002/60001
5 years, 8 months ago (2015-04-16 22:09:06 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1083163002/80001
5 years, 8 months ago (2015-04-16 22:39:02 UTC) #15
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 8 months ago (2015-04-16 23:58:50 UTC) #16
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/b51933daebb2453735df35a21519d7c4439c25fc Cr-Commit-Position: refs/heads/master@{#325557}
5 years, 8 months ago (2015-04-16 23:59:45 UTC) #17
jpawlowski1
5 years, 8 months ago (2015-04-17 04:48:14 UTC) #18
Message was sent while issue was closed.
https://codereview.chromium.org/1083163002/diff/20001/extensions/browser/api/...
File extensions/browser/api/bluetooth/bluetooth_event_router.cc (right):

https://codereview.chromium.org/1083163002/diff/20001/extensions/browser/api/...
extensions/browser/api/bluetooth/bluetooth_event_router.cc:94: // Check wether
user pre set discovery filter by calling SetDiscoveryFilter
On 2015/04/16 21:24:02, armansito wrote:
> nit: s/wether/whether/

Done.

https://codereview.chromium.org/1083163002/diff/20001/extensions/browser/api/...
extensions/browser/api/bluetooth/bluetooth_event_router.cc:94: // Check wether
user pre set discovery filter by calling SetDiscoveryFilter
On 2015/04/16 21:24:02, armansito wrote:
> A little more concise: "If the user has set a discovery filter then start a
> filtered discovery session, otherwise start a regular session".
> 

Done.

https://codereview.chromium.org/1083163002/diff/20001/extensions/browser/api/...
extensions/browser/api/bluetooth/bluetooth_event_router.cc:402: DVLOG(1) <<
"Succesfully set DiscoveryFilter.";
On 2015/04/16 21:24:02, armansito wrote:
> nit: s/Succesfully/Successfully/

Done.

Powered by Google App Engine
This is Rietveld 408576698