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

Issue 1464443002: bluetooth: android: Add BluetoothDevice::ConnectErrorCode enums (Closed)

Created:
5 years, 1 month ago by Kai Jiang
Modified:
4 years, 11 months ago
CC:
chromium-reviews, scheib+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

bluetooth: android: Add BluetoothDevice::ConnectErrorCode enums increased ConnectErrorCode enum and cases in BluetoothDeviceAndroid::OnConnectionStateChange BUG=531058 Committed: https://crrev.com/d730ca14bd3caced4f52617146969d72304c56e9 Cr-Commit-Position: refs/heads/master@{#368649}

Patch Set 1 : I #

Total comments: 6

Patch Set 2 : II #

Total comments: 14

Patch Set 3 : III #

Total comments: 51

Patch Set 4 : IV #

Total comments: 2

Patch Set 5 : V #

Total comments: 2

Patch Set 6 : VI #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+476 lines, -89 lines) Patch
M AUTHORS View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/app/chromeos_strings.grdp View 1 2 3 4 1 chunk +21 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_api.cc View 1 2 3 4 2 chunks +34 lines, -19 lines 0 comments Download
M chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_apitest.cc View 1 2 3 4 5 2 chunks +17 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_event_router.h View 1 2 3 4 1 chunk +6 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_event_router.cc View 1 2 3 4 1 chunk +51 lines, -13 lines 0 comments Download
M chrome/browser/resources/options/chromeos/bluetooth_pair_device_overlay.js View 1 2 3 4 1 chunk +21 lines, -0 lines 4 comments Download
M chrome/browser/ui/webui/options/chromeos/bluetooth_options_handler.cc View 1 2 3 4 1 chunk +14 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/api_test/bluetooth_low_energy/gatt_connection/runtest.js View 1 2 3 2 chunks +14 lines, -0 lines 0 comments Download
M content/browser/bluetooth/bluetooth_dispatcher_host.cc View 1 2 3 4 1 chunk +24 lines, -0 lines 0 comments Download
M content/browser/bluetooth/bluetooth_metrics.h View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h View 1 2 3 4 3 chunks +39 lines, -9 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc View 1 2 3 4 2 chunks +47 lines, -2 lines 0 comments Download
M device/bluetooth/bluetooth_device.h View 1 2 3 4 1 chunk +13 lines, -5 lines 0 comments Download
M device/bluetooth/bluetooth_device_android.cc View 1 2 3 4 1 chunk +14 lines, -2 lines 0 comments Download
M device/bluetooth/test/bluetooth_test_android.cc View 1 2 3 4 1 chunk +26 lines, -4 lines 0 comments Download
M extensions/browser/api/bluetooth/bluetooth_private_api.cc View 1 2 3 4 1 chunk +34 lines, -10 lines 0 comments Download
M extensions/common/api/bluetooth_private.idl View 1 2 3 1 chunk +13 lines, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/connectGATT.html View 1 2 3 1 chunk +35 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/bluetooth/BluetoothError.cpp View 1 2 3 4 1 chunk +13 lines, -6 lines 0 comments Download
M third_party/WebKit/public/platform/modules/bluetooth/WebBluetoothError.h View 1 2 3 1 chunk +13 lines, -6 lines 0 comments Download
M third_party/closure_compiler/externs/bluetooth_private.js View 1 2 3 1 chunk +12 lines, -5 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 69 (28 generated)
Kai Jiang
5 years, 1 month ago (2015-11-19 14:11:20 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1464443002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1464443002/1
5 years, 1 month ago (2015-11-19 21:35:46 UTC) #4
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/143366)
5 years, 1 month ago (2015-11-19 21:56:13 UTC) #6
scheib
Thank you for the contribution! To see this patch complete we will need to consider ...
5 years, 1 month ago (2015-11-19 22:03:00 UTC) #7
scheib
https://codereview.chromium.org/1464443002/diff/1/device/bluetooth/bluetooth_device.h File device/bluetooth/bluetooth_device.h (right): https://codereview.chromium.org/1464443002/diff/1/device/bluetooth/bluetooth_device.h#newcode99 device/bluetooth/bluetooth_device.h:99: ERROR_UNSUPPORTED_DEVICE, We should sort these values alphabetically. https://codereview.chromium.org/1464443002/diff/1/device/bluetooth/bluetooth_device_android.cc File ...
5 years, 1 month ago (2015-11-19 22:25:06 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1464443002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1464443002/20001
5 years, 1 month ago (2015-11-20 12:12:58 UTC) #10
commit-bot: I haz the power
Dry run: No L-G-T-M from a valid reviewer yet. Only full committers are accepted. Even ...
5 years, 1 month ago (2015-11-20 12:12:59 UTC) #12
Kai Jiang
On 2015/11/19 22:25:06, scheib wrote: > https://codereview.chromium.org/1464443002/diff/1/device/bluetooth/bluetooth_device.h > File device/bluetooth/bluetooth_device.h (right): > > https://codereview.chromium.org/1464443002/diff/1/device/bluetooth/bluetooth_device.h#newcode99 > ...
5 years, 1 month ago (2015-11-20 12:22:04 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1464443002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1464443002/20001
5 years, 1 month ago (2015-11-23 23:27:45 UTC) #15
scheib
Thanks again for patch work. Keep it up, there's some more work to do. Getting ...
5 years, 1 month ago (2015-11-24 01:30:48 UTC) #16
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/133318)
5 years, 1 month ago (2015-11-24 03:16:50 UTC) #18
Kai Jiang
https://codereview.chromium.org/1464443002/diff/1/device/bluetooth/bluetooth_device.h File device/bluetooth/bluetooth_device.h (right): https://codereview.chromium.org/1464443002/diff/1/device/bluetooth/bluetooth_device.h#newcode99 device/bluetooth/bluetooth_device.h:99: ERROR_UNSUPPORTED_DEVICE, On 2015/11/19 22:25:05, scheib wrote: > We should ...
5 years ago (2015-11-25 14:17:13 UTC) #19
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1464443002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1464443002/40001
5 years ago (2015-11-25 21:06:58 UTC) #21
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/146213)
5 years ago (2015-11-25 22:23:47 UTC) #23
scheib
Thanks, keep it up. ;) Some simple requests below (helping clean up code by keeping ...
5 years ago (2015-11-26 00:02:51 UTC) #24
scheib
stevenjb, would you comment on what we should do here: - We're adding Bluetooth connection ...
5 years ago (2015-11-26 00:06:39 UTC) #27
Kai Jiang
Sorry for the late update. I run the try bot. I got wrong info under ...
5 years ago (2015-11-29 10:40:52 UTC) #34
stevenjb
We shouldn't add strings for errors that can not (currently) occur. Instead we should just ...
5 years ago (2015-11-30 18:07:57 UTC) #35
scheib
stevenjb's suggestion for strings makes sense to me, so we can collapse down to a ...
5 years ago (2015-12-01 00:33:12 UTC) #36
stevenjb
I think we should avoid an assert in the JS and just show the unknown ...
5 years ago (2015-12-01 01:04:33 UTC) #37
stevenjb
After looking through the CL, I think it is better that we include the strings ...
5 years ago (2015-12-01 17:51:33 UTC) #38
scheib
Bluetooth errors: connectGATT.html tests errors by sending an errorUUID https://code.google.com/p/chromium/codesearch#chromium/src/third_party/WebKit/LayoutTests/bluetooth/connectGATT.html LayoutTestBluetoothAdapterProvider::GetFailingConnectionsAdapter generates the fake adapter ...
5 years ago (2015-12-03 22:17:52 UTC) #39
scheib
Kai Jiang, thank you for your work to date on this - hoping you'll see ...
4 years, 11 months ago (2016-01-07 23:19:21 UTC) #40
Kai Jiang
Sorry about pausing on updating this issue due to some school work recently. I will ...
4 years, 11 months ago (2016-01-07 23:23:34 UTC) #41
Kai Jiang
On 2015/12/03 22:17:52, scheib wrote: > Bluetooth errors: > > connectGATT.html tests errors by sending ...
4 years, 11 months ago (2016-01-08 15:28:41 UTC) #42
scheib
On 2016/01/08 15:28:41, Kai Jiang wrote: > On 2015/12/03 22:17:52, scheib wrote: > > Bluetooth ...
4 years, 11 months ago (2016-01-08 20:04:22 UTC) #43
scheib
On 2016/01/08 20:04:22, scheib wrote: > On 2016/01/08 15:28:41, Kai Jiang wrote: > > On ...
4 years, 11 months ago (2016-01-08 20:08:08 UTC) #44
Kai Jiang
https://codereview.chromium.org/1464443002/diff/180001/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_event_router.cc File chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_event_router.cc (right): https://codereview.chromium.org/1464443002/diff/180001/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_event_router.cc#newcode1351 chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_event_router.cc:1351: error_status = kStatusErrorFailed; On 2015/12/01 17:51:33, stevenjb wrote: > ...
4 years, 11 months ago (2016-01-09 22:49:35 UTC) #49
scheib
Thanks! Looking great. Just one more change and we'll land: https://codereview.chromium.org/1464443002/diff/260001/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_apitest.cc File chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_apitest.cc (right): https://codereview.chromium.org/1464443002/diff/260001/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_apitest.cc#newcode1150 ...
4 years, 11 months ago (2016-01-09 23:27:13 UTC) #50
scheib
OWNERS review please: isherman: tools/metrics/histograms/histograms.xml reillyg: chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_api.cc chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_apitest.cc chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_event_router.cc chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_event_router.h device/bluetooth/bluetooth_device.h extensions/browser/api/bluetooth/bluetooth_private_api.cc extensions/common/api/bluetooth_private.idl
4 years, 11 months ago (2016-01-09 23:39:41 UTC) #52
Ilya Sherman
histograms.xml lgtm
4 years, 11 months ago (2016-01-10 03:57:01 UTC) #53
Kai Jiang
https://codereview.chromium.org/1464443002/diff/260001/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_apitest.cc File chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_apitest.cc (right): https://codereview.chromium.org/1464443002/diff/260001/chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_apitest.cc#newcode1150 chrome/browser/extensions/api/bluetooth_low_energy/bluetooth_low_energy_apitest.cc:1150: EXPECT_CALL(*device0_, CreateGattConnection(_, _)) On 2016/01/09 23:27:13, scheib wrote: > ...
4 years, 11 months ago (2016-01-10 08:47:16 UTC) #55
scheib
LGTM
4 years, 11 months ago (2016-01-11 18:15:14 UTC) #56
Reilly Grant (use Gerrit)
lgtm
4 years, 11 months ago (2016-01-11 18:31:15 UTC) #57
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1464443002/320001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1464443002/320001
4 years, 11 months ago (2016-01-11 18:32:29 UTC) #60
commit-bot: I haz the power
Committed patchset #6 (id:320001)
4 years, 11 months ago (2016-01-11 20:11:58 UTC) #62
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/d730ca14bd3caced4f52617146969d72304c56e9 Cr-Commit-Position: refs/heads/master@{#368649}
4 years, 11 months ago (2016-01-11 20:12:55 UTC) #64
Dan Beam
https://codereview.chromium.org/1464443002/diff/320001/chrome/browser/resources/options/chromeos/bluetooth_pair_device_overlay.js File chrome/browser/resources/options/chromeos/bluetooth_pair_device_overlay.js (right): https://codereview.chromium.org/1464443002/diff/320001/chrome/browser/resources/options/chromeos/bluetooth_pair_device_overlay.js#newcode559 chrome/browser/resources/options/chromeos/bluetooth_pair_device_overlay.js:559: case chrome.bluetoothPrivate.ConnctResultType.INSUFFICIENT_ENCRYPTION: fail
4 years, 11 months ago (2016-01-11 20:34:05 UTC) #66
scheib
https://codereview.chromium.org/1464443002/diff/320001/chrome/browser/resources/options/chromeos/bluetooth_pair_device_overlay.js File chrome/browser/resources/options/chromeos/bluetooth_pair_device_overlay.js (right): https://codereview.chromium.org/1464443002/diff/320001/chrome/browser/resources/options/chromeos/bluetooth_pair_device_overlay.js#newcode559 chrome/browser/resources/options/chromeos/bluetooth_pair_device_overlay.js:559: case chrome.bluetoothPrivate.ConnctResultType.INSUFFICIENT_ENCRYPTION: On 2016/01/11 20:34:05, Dan Beam wrote: > ...
4 years, 11 months ago (2016-01-11 20:35:58 UTC) #67
Dan Beam
this is how I found out, btw https://build.chromium.org/p/chromium.fyi/builders/Closure%20Compilation%20Linux/builds/44640 https://codereview.chromium.org/1464443002/diff/320001/chrome/browser/resources/options/chromeos/bluetooth_pair_device_overlay.js File chrome/browser/resources/options/chromeos/bluetooth_pair_device_overlay.js (right): https://codereview.chromium.org/1464443002/diff/320001/chrome/browser/resources/options/chromeos/bluetooth_pair_device_overlay.js#newcode559 chrome/browser/resources/options/chromeos/bluetooth_pair_device_overlay.js:559: case ...
4 years, 11 months ago (2016-01-11 20:37:37 UTC) #68
scheib
4 years, 11 months ago (2016-01-11 20:49:24 UTC) #69
Message was sent while issue was closed.
https://codereview.chromium.org/1464443002/diff/320001/chrome/browser/resourc...
File chrome/browser/resources/options/chromeos/bluetooth_pair_device_overlay.js
(right):

https://codereview.chromium.org/1464443002/diff/320001/chrome/browser/resourc...
chrome/browser/resources/options/chromeos/bluetooth_pair_device_overlay.js:559:
case chrome.bluetoothPrivate.ConnctResultType.INSUFFICIENT_ENCRYPTION:
On 2016/01/11 20:37:37, Dan Beam wrote:
> On 2016/01/11 20:35:57, scheib wrote:
> > On 2016/01/11 20:34:05, Dan Beam wrote:
> > > fail
> > 
> > I'll patch now.
> 
> yeah, I'm just skeptical as to how much testing this got :(

Tryjobs as run on patches here, nothing to be skeptical about - it isn't obvious
that there is no automated test coverage for this. Sorry. I'll do a linux COS
build and add manual TEST= line for bringing up the bluetooth pairing UI. 

stevenjb: Anything other than just loading the bluetooth pairing device overlay
needed?

Powered by Google App Engine
This is Rietveld 408576698