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

Issue 349433002: chrome.bluetoothLowEnergy: Introduce connect and disconnect methods. (Closed)

Created:
6 years, 6 months ago by armansito
Modified:
6 years, 6 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Project:
chromium
Visibility:
Public.

Description

chrome.bluetoothLowEnergy: Introduce connect and disconnect methods. This CL introduces the connect and disconnect methods to the bluetoothLowEnergy API, which allow an app to initiate and hold on to the connection to a low energy device. The API calls internally manage the allocation of an API resource corresponding to a per app, per device device::BluetoothGattConnection object. BUG=381305 TEST=browser_tests --gtest_filter=BluetoothLowEnergyApiTest.* Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=278669

Patch Set 1 #

Total comments: 6

Patch Set 2 : Updated histograms.xml #

Total comments: 4

Patch Set 3 : Addressed comments by keybuk@ and rpaquay@ #

Patch Set 4 : Rebased & marked occurrences isLocal as nodoc #

Unified diffs Side-by-side diffs Delta from patch set Stats (+996 lines, -277 lines) Patch
M chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_api.h View 1 2 1 chunk +38 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_api.cc View 1 2 7 chunks +122 lines, -64 lines 0 comments Download
M chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_apitest.cc View 43 chunks +250 lines, -156 lines 0 comments Download
A chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_connection.h View 1 2 1 chunk +52 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_connection.cc View 1 2 1 chunk +41 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_event_router.h View 1 2 6 chunks +83 lines, -26 lines 0 comments Download
M chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_event_router.cc View 1 2 18 chunks +230 lines, -25 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/bluetooth_low_energy.idl View 1 2 3 6 chunks +36 lines, -4 lines 0 comments Download
A + chrome/test/data/extensions/api_test/bluetooth_low_energy/gatt_connection/manifest.json View 1 chunk +1 line, -1 line 0 comments Download
A chrome/test/data/extensions/api_test/bluetooth_low_energy/gatt_connection/runtest.js View 1 chunk +101 lines, -0 lines 0 comments Download
A + chrome/test/data/extensions/api_test/bluetooth_low_energy/reconnect_after_disconnected/manifest.json View 1 chunk +1 line, -1 line 0 comments Download
A chrome/test/data/extensions/api_test/bluetooth_low_energy/reconnect_after_disconnected/runtest.js View 1 chunk +35 lines, -0 lines 0 comments Download
M extensions/browser/extension_function_histogram_value.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
armansito
kalman@: bluetooth_low_energy.idl OWNERS isherman@: extension_function_histogram_value.h OWNERS keybuk@: General review.
6 years, 6 months ago (2014-06-19 17:12:15 UTC) #1
keybuk
https://codereview.chromium.org/349433002/diff/1/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_connection.cc File chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_connection.cc (right): https://codereview.chromium.org/349433002/diff/1/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_connection.cc#newcode36 chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_connection.cc:36: } I leave it up to kalman to decide ...
6 years, 6 months ago (2014-06-19 17:23:49 UTC) #2
not at google - send to devlin
IDL lgtm as a rubberstamp sort of thing. +rpaquay for extensions. https://codereview.chromium.org/349433002/diff/1/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_connection.cc File chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_connection.cc (right): ...
6 years, 6 months ago (2014-06-19 17:27:09 UTC) #3
Ilya Sherman
Please run the script to update //tools/metrics/histograms/histograms.xml.
6 years, 6 months ago (2014-06-19 17:49:45 UTC) #4
armansito
On 2014/06/19 17:49:45, Ilya Sherman wrote: > Please run the script to update //tools/metrics/histograms/histograms.xml. done.
6 years, 6 months ago (2014-06-19 18:02:03 UTC) #5
rpaquay
https://codereview.chromium.org/349433002/diff/1/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_connection.cc File chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_connection.cc (right): https://codereview.chromium.org/349433002/diff/1/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_connection.cc#newcode36 chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_connection.cc:36: } On 2014/06/19 17:27:09, kalman wrote: > On 2014/06/19 ...
6 years, 6 months ago (2014-06-19 19:07:27 UTC) #6
Ilya Sherman
Histograms LGTM
6 years, 6 months ago (2014-06-19 20:59:38 UTC) #7
armansito
https://codereview.chromium.org/349433002/diff/1/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_connection.cc File chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_connection.cc (right): https://codereview.chromium.org/349433002/diff/1/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_connection.cc#newcode36 chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_connection.cc:36: } On 2014/06/19 19:07:26, rpaquay wrote: > On 2014/06/19 ...
6 years, 6 months ago (2014-06-19 21:58:35 UTC) #8
rpaquay
idl + persistent usage lgtm
6 years, 6 months ago (2014-06-19 22:09:49 UTC) #9
keybuk
lgtm
6 years, 6 months ago (2014-06-20 00:06:15 UTC) #10
armansito
The CQ bit was checked by armansito@chromium.org
6 years, 6 months ago (2014-06-20 04:49:55 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/armansito@chromium.org/349433002/60001
6 years, 6 months ago (2014-06-20 04:54:21 UTC) #12
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: ios_dbg_simulator on tryserver.chromium ...
6 years, 6 months ago (2014-06-20 10:42:13 UTC) #13
commit-bot: I haz the power
6 years, 6 months ago (2014-06-20 11:03:30 UTC) #14
Message was sent while issue was closed.
Change committed as 278669

Powered by Google App Engine
This is Rietveld 408576698