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

Issue 1610053005: bluetooth: android: Fix a couple of crashes when adapter is turned on/off. (Closed)

Created:
4 years, 11 months ago by perja
Modified:
4 years, 10 months ago
Reviewers:
scheib, ortuno
CC:
chromium-reviews, scheib+watch_chromium.org, tommyt
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

bluetooth: android: Fix a couple of crashes when adapter is turned on/off. These changes fixes the crashes found when toggling the adapter on/off when device chooser dialog is used in web-bluetooth. BUG=570610 Committed: https://crrev.com/28e8a498f4348d26ddcc07a341591b0183c4bdd6 Cr-Commit-Position: refs/heads/master@{#374145}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Unit tests for IllegalStateException #

Patch Set 3 : Implemented SetPowered for Android #

Patch Set 4 : Rebased on master #

Patch Set 5 : Fixed issue with failing trybot #

Total comments: 4

Patch Set 6 : Changed from setPowered to disable/enable. #

Patch Set 7 : Rebased on latest master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+207 lines, -23 lines) Patch
M device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothAdapter.java View 1 2 3 4 5 4 chunks +26 lines, -3 lines 0 comments Download
M device/bluetooth/android/java/src/org/chromium/device/bluetooth/Wrappers.java View 1 2 3 4 5 6 5 chunks +34 lines, -15 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_android.cc View 1 2 1 chunk +6 lines, -1 line 0 comments Download
M device/bluetooth/bluetooth_adapter_unittest.cc View 1 2 3 4 5 6 2 chunks +85 lines, -0 lines 0 comments Download
M device/bluetooth/test/android/java/src/org/chromium/device/bluetooth/Fakes.java View 1 2 3 4 5 6 10 chunks +47 lines, -4 lines 0 comments Download
M device/bluetooth/test/bluetooth_test_android.h View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M device/bluetooth/test/bluetooth_test_android.cc View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (10 generated)
perja
@scheib: please take a look and see if it is ok. I incorporated some of ...
4 years, 11 months ago (2016-01-20 14:22:53 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1610053005/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1610053005/1
4 years, 11 months ago (2016-01-21 01:49:04 UTC) #6
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-21 02:12:13 UTC) #8
scheib
Thanks for taking this on. https://codereview.chromium.org/1610053005/diff/1/device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothAdapter.java File device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothAdapter.java (right): https://codereview.chromium.org/1610053005/diff/1/device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothAdapter.java#newcode185 device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothAdapter.java:185: Wrappers.BluetoothLeScannerWrapper scanner = mAdapter.getBluetoothLeScanner(); ...
4 years, 11 months ago (2016-01-21 05:33:51 UTC) #9
perja
@scheib: Thanks for the detailed feedback. If it is ok with you I would like ...
4 years, 11 months ago (2016-01-21 15:33:06 UTC) #10
scheib
On 2016/01/21 15:33:06, perja wrote: > @scheib: Thanks for the detailed feedback. If it is ...
4 years, 11 months ago (2016-01-21 16:05:01 UTC) #11
perja
Fixed the issue that caused assertion error on one of the trybots. Please take a ...
4 years, 10 months ago (2016-02-05 07:52:31 UTC) #13
scheib
Glad to see it sorted out! LGTM with some small changes: https://codereview.chromium.org/1610053005/diff/100001/device/bluetooth/android/java/src/org/chromium/device/bluetooth/Wrappers.java File device/bluetooth/android/java/src/org/chromium/device/bluetooth/Wrappers.java (right): ...
4 years, 10 months ago (2016-02-05 18:06:19 UTC) #14
perja
@scheib: fixed the two remaining issues you mentioned. And also rebased. https://codereview.chromium.org/1610053005/diff/100001/device/bluetooth/android/java/src/org/chromium/device/bluetooth/Wrappers.java File device/bluetooth/android/java/src/org/chromium/device/bluetooth/Wrappers.java (right): ...
4 years, 10 months ago (2016-02-08 14:48:31 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1610053005/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1610053005/140001
4 years, 10 months ago (2016-02-08 18:28:09 UTC) #18
commit-bot: I haz the power
Committed patchset #7 (id:140001)
4 years, 10 months ago (2016-02-08 18:39:26 UTC) #20
commit-bot: I haz the power
4 years, 10 months ago (2016-02-08 18:40:43 UTC) #22
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/28e8a498f4348d26ddcc07a341591b0183c4bdd6
Cr-Commit-Position: refs/heads/master@{#374145}

Powered by Google App Engine
This is Rietveld 408576698