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

Issue 10915148: Change getDevices to use a DeviceCallback. (Closed)

Created:
8 years, 3 months ago by bryeung
Modified:
8 years, 3 months ago
CC:
chromium-reviews, mihaip-chromium-reviews_chromium.org, nkostylev+watch_chromium.org, Aaron Boodman, darin-cc_chromium.org, oshima+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Change getDevices to use a DeviceCallback. This modifies the getDevices method of the bluetooth Extensions API to accept a DeviceCallback, which will be called for every matching device. This will allow more thorough, long-running searches (involving SDP queries) to be performed without slowing down access to matching devices that can be returned quickly. TEST=api test updated BUG=134545 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=156348

Patch Set 1 #

Total comments: 2

Patch Set 2 : review comments #

Patch Set 3 : fix test breakage #

Unified diffs Side-by-side diffs Delta from patch set Stats (+278 lines, -128 lines) Patch
M chrome/browser/chromeos/bluetooth/bluetooth_device.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/bluetooth/test/mock_bluetooth_device.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/extensions/bluetooth_event_router.h View 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/extensions/bluetooth_event_router.cc View 3 chunks +16 lines, -14 lines 0 comments Download
M chrome/browser/extensions/api/bluetooth/bluetooth_api.h View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/bluetooth/bluetooth_api.cc View 4 chunks +18 lines, -11 lines 0 comments Download
M chrome/browser/extensions/api/bluetooth/bluetooth_apitest_chromeos.cc View 1 2 4 chunks +78 lines, -80 lines 0 comments Download
M chrome/browser/extensions/event_names.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/event_names.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/experimental_bluetooth.idl View 2 chunks +13 lines, -5 lines 0 comments Download
M chrome/renderer/resources/extensions/experimental.bluetooth_custom_bindings.js View 1 4 chunks +49 lines, -9 lines 0 comments Download
A + chrome/test/data/extensions/api_test/bluetooth/test_getdevices.html View 2 1 chunk +1 line, -1 line 0 comments Download
A chrome/test/data/extensions/api_test/bluetooth/test_getdevices.js View 1 chunk +55 lines, -0 lines 0 comments Download
A + chrome/test/data/extensions/api_test/bluetooth/test_getdevices_concurrently.html View 1 2 1 chunk +1 line, -1 line 0 comments Download
A chrome/test/data/extensions/api_test/bluetooth/test_getdevices_concurrently.js View 1 1 chunk +31 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
bryeung
asargent: for the extensions changes keybuk: for the bluetooth changes
8 years, 3 months ago (2012-09-07 18:06:57 UTC) #1
bryeung
asargent: for the extensions changes keybuk: for the bluetooth changes
8 years, 3 months ago (2012-09-07 18:06:59 UTC) #2
keybuk
lgtm
8 years, 3 months ago (2012-09-10 17:58:19 UTC) #3
bryeung
Antony: do you have bandwidth for this review?
8 years, 3 months ago (2012-09-11 15:16:19 UTC) #4
asargent_no_longer_on_chrome
Yes, looking now. Apologies for delay - I got backed up on reviews. On Tue, ...
8 years, 3 months ago (2012-09-11 17:17:30 UTC) #5
asargent_no_longer_on_chrome
LGTM w/ one problem in event listening you should fix http://codereview.chromium.org/10915148/diff/1/chrome/renderer/resources/extensions/experimental.bluetooth_custom_bindings.js File chrome/renderer/resources/extensions/experimental.bluetooth_custom_bindings.js (right): http://codereview.chromium.org/10915148/diff/1/chrome/renderer/resources/extensions/experimental.bluetooth_custom_bindings.js#newcode71 ...
8 years, 3 months ago (2012-09-11 17:42:56 UTC) #6
bryeung
http://codereview.chromium.org/10915148/diff/1/chrome/renderer/resources/extensions/experimental.bluetooth_custom_bindings.js File chrome/renderer/resources/extensions/experimental.bluetooth_custom_bindings.js (right): http://codereview.chromium.org/10915148/diff/1/chrome/renderer/resources/extensions/experimental.bluetooth_custom_bindings.js#newcode71 chrome/renderer/resources/extensions/experimental.bluetooth_custom_bindings.js:71: chromeHidden.bluetooth.deviceSearchResultHandler); On 2012/09/11 17:42:56, Antony Sargent wrote: > It ...
8 years, 3 months ago (2012-09-11 18:37:30 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bryeung@chromium.org/10915148/7001
8 years, 3 months ago (2012-09-11 18:38:23 UTC) #8
commit-bot: I haz the power
Try job failure for 10915148-7001 (previous was lost) (retry) on linux_chromeos for step "browser_tests". It's ...
8 years, 3 months ago (2012-09-11 20:36:05 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bryeung@chromium.org/10915148/16
8 years, 3 months ago (2012-09-12 15:54:55 UTC) #10
commit-bot: I haz the power
8 years, 3 months ago (2012-09-12 19:13:07 UTC) #11
Change committed as 156348

Powered by Google App Engine
This is Rietveld 408576698