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

Issue 11743024: Implemented BluetoothExtensionFunction. (Closed)

Created:
7 years, 11 months ago by youngki
Modified:
7 years, 11 months ago
CC:
chromium-reviews, Aaron Boodman, chromium-apps-reviews_chromium.org, bryeung, keybuk, deymo
Visibility:
Public.

Description

Implemented BluetoothExtensionFunction. From discussion with Bryan (@bryeung) and Scott (@keybuk), we decided to make the bluetooth extension functions asynchronous because it takes time to initialize BluetoothAdapter. So I implemented BluetoothExtensionFunction, which is the base class for all the subclasses and it calls DoWork() when the bluetooth adapter is ready to use. After this CL is submitted, I will turn BluetoothAdapterFactory::DefaultAdapter() to receive a callback and run the callback when the bluetooth adapter is ready. TBR=sky@chromium.org BUG=135470 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=175553

Patch Set 1 #

Total comments: 2

Patch Set 2 : Revised comment #

Patch Set 3 : Replace EXTENSION_FUNCTION_VALIDATE macro #

Total comments: 2

Patch Set 4 : Change DoWork to return boolean. #

Patch Set 5 : Merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+161 lines, -109 lines) Patch
M chrome/browser/extensions/api/bluetooth/bluetooth_api.h View 1 2 3 8 chunks +27 lines, -24 lines 0 comments Download
M chrome/browser/extensions/api/bluetooth/bluetooth_api.cc View 1 2 3 14 chunks +35 lines, -72 lines 0 comments Download
M chrome/browser/extensions/api/bluetooth/bluetooth_event_router.h View 1 chunk +2 lines, -6 lines 0 comments Download
M chrome/browser/extensions/api/bluetooth/bluetooth_event_router.cc View 2 chunks +2 lines, -7 lines 0 comments Download
A chrome/browser/extensions/api/bluetooth/bluetooth_extension_function.h View 1 2 3 1 chunk +44 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/bluetooth/bluetooth_extension_function.cc View 1 chunk +49 lines, -0 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
youngki
Hi Antony, could you review this CL? Mike (@miket) is away on vacation and I ...
7 years, 11 months ago (2013-01-03 20:59:49 UTC) #1
asargent_no_longer_on_chrome
LGTM https://chromiumcodereview.appspot.com/11743024/diff/1/chrome/browser/extensions/api/bluetooth/bluetooth_extension_function.h File chrome/browser/extensions/api/bluetooth/bluetooth_extension_function.h (right): https://chromiumcodereview.appspot.com/11743024/diff/1/chrome/browser/extensions/api/bluetooth/bluetooth_extension_function.h#newcode36 chrome/browser/extensions/api/bluetooth/bluetooth_extension_function.h:36: // initialized. nit: this comment is slightly confusing ...
7 years, 11 months ago (2013-01-04 17:41:21 UTC) #2
youngki
Thanks for the quick review Antony. I am putting this into commit queue then submit. ...
7 years, 11 months ago (2013-01-04 18:19:09 UTC) #3
youngki
I had to replace some of EXTENSION_FUNCTION_VALIDATE macro with the if block that returns nothing ...
7 years, 11 months ago (2013-01-04 19:11:59 UTC) #4
asargent_no_longer_on_chrome
https://chromiumcodereview.appspot.com/11743024/diff/4002/chrome/browser/extensions/api/bluetooth/bluetooth_api.cc File chrome/browser/extensions/api/bluetooth/bluetooth_api.cc (right): https://chromiumcodereview.appspot.com/11743024/diff/4002/chrome/browser/extensions/api/bluetooth/bluetooth_api.cc#newcode171 chrome/browser/extensions/api/bluetooth/bluetooth_api.cc:171: } Instead of manually putting in the code to ...
7 years, 11 months ago (2013-01-04 21:54:22 UTC) #5
youngki
https://chromiumcodereview.appspot.com/11743024/diff/4002/chrome/browser/extensions/api/bluetooth/bluetooth_api.cc File chrome/browser/extensions/api/bluetooth/bluetooth_api.cc (right): https://chromiumcodereview.appspot.com/11743024/diff/4002/chrome/browser/extensions/api/bluetooth/bluetooth_api.cc#newcode171 chrome/browser/extensions/api/bluetooth/bluetooth_api.cc:171: } On 2013/01/04 21:54:22, Antony Sargent wrote: > Instead ...
7 years, 11 months ago (2013-01-04 23:44:44 UTC) #6
asargent_no_longer_on_chrome
Cool, LGTM again
7 years, 11 months ago (2013-01-04 23:53:35 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/youngki@chromium.org/11743024/25001
7 years, 11 months ago (2013-01-05 04:47:27 UTC) #8
commit-bot: I haz the power
Presubmit check for 11743024-25001 failed and returned exit status 1. Running presubmit commit checks ...
7 years, 11 months ago (2013-01-05 04:47:32 UTC) #9
youngki
Adding TBR=sky@chromium.org for gyp change (adding bluetooth_extension_function.{h|cc})
7 years, 11 months ago (2013-01-06 15:08:25 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/youngki@chromium.org/11743024/25001
7 years, 11 months ago (2013-01-06 15:08:52 UTC) #11
commit-bot: I haz the power
Retried try job too often on ios_dbg_simulator for step(s) sync_unit_tests, unit_tests
7 years, 11 months ago (2013-01-06 15:29:26 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/youngki@chromium.org/11743024/25001
7 years, 11 months ago (2013-01-06 20:12:19 UTC) #13
commit-bot: I haz the power
Retried try job too often on ios_dbg_simulator for step(s) sync_unit_tests, unit_tests
7 years, 11 months ago (2013-01-06 20:24:08 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/youngki@chromium.org/11743024/38003
7 years, 11 months ago (2013-01-07 14:20:11 UTC) #15
commit-bot: I haz the power
Retried try job too often on ios_dbg_simulator for step(s) sync_unit_tests, unit_tests
7 years, 11 months ago (2013-01-07 14:33:43 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/youngki@chromium.org/11743024/38003
7 years, 11 months ago (2013-01-07 15:37:34 UTC) #17
commit-bot: I haz the power
Retried try job too often on win_aura for step(s) interactive_ui_tests
7 years, 11 months ago (2013-01-07 17:14:47 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/youngki@chromium.org/11743024/38003
7 years, 11 months ago (2013-01-07 18:55:12 UTC) #19
commit-bot: I haz the power
Retried try job too often on win_aura for step(s) interactive_ui_tests
7 years, 11 months ago (2013-01-07 21:16:36 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/youngki@chromium.org/11743024/38003
7 years, 11 months ago (2013-01-08 01:01:05 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/youngki@chromium.org/11743024/38003
7 years, 11 months ago (2013-01-08 18:11:16 UTC) #22
commit-bot: I haz the power
7 years, 11 months ago (2013-01-08 18:11:34 UTC) #23
Message was sent while issue was closed.
Change committed as 175553

Powered by Google App Engine
This is Rietveld 408576698