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

Issue 1711393002: bluetooth: android: register for adapter on/off events. (Closed)

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

Description

bluetooth: android: register for adapter on/off events. Register for BluetoothAdapter.ACTION_STATE_CHANGED and reflect the state changes in the device chooser dialog. BUG=543060 Committed: https://crrev.com/3a38a463d379e27cb72a3c0334f76ecf4f8de8c4 Cr-Commit-Position: refs/heads/master@{#377982}

Patch Set 1 #

Total comments: 4

Patch Set 2 : More descriptive debug output + fixed comment and moved method. #

Patch Set 3 : Rebased on master #

Total comments: 8
Unified diffs Side-by-side diffs Delta from patch set Stats (+157 lines, -3 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/BluetoothChooserDialog.java View 1 2 1 chunk +8 lines, -0 lines 4 comments Download
M chrome/browser/ui/android/bluetooth_chooser_android.cc View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/bluetooth/bluetooth_dispatcher_host.cc View 1 2 1 chunk +12 lines, -0 lines 0 comments Download
M device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothAdapter.java View 1 7 chunks +63 lines, -1 line 4 comments Download
M device/bluetooth/android/java/src/org/chromium/device/bluetooth/Wrappers.java View 2 chunks +11 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_adapter.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M device/bluetooth/bluetooth_adapter.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_android.h View 1 chunk +5 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_android.cc View 1 chunk +7 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_unittest.cc View 2 chunks +10 lines, -0 lines 0 comments Download
M device/bluetooth/test/android/java/src/org/chromium/device/bluetooth/Fakes.java View 4 chunks +18 lines, -0 lines 0 comments Download
M device/bluetooth/test/bluetooth_test_android.h View 1 chunk +6 lines, -0 lines 0 comments Download
M device/bluetooth/test/bluetooth_test_android.cc View 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (8 generated)
perja
This change makes the code aware of adapter on/off broadcast events and updates the state ...
4 years, 10 months ago (2016-02-19 20:08:50 UTC) #2
scheib
Thanks, LGTM. Please follow up with a patch to address following nits: https://codereview.chromium.org/1711393002/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 ...
4 years, 10 months ago (2016-02-26 00:05:59 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1711393002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1711393002/1
4 years, 10 months ago (2016-02-26 00:13:50 UTC) #5
scheib
Ted C PTAL as OWNER for these files: chrome/android/java/src/org/chromium/chrome/browser/BluetoothChooserDialog.java chrome/browser/ui/android/bluetooth_chooser_android.cc
4 years, 10 months ago (2016-02-26 00:59:18 UTC) #6
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/29386) chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, ...
4 years, 10 months ago (2016-02-26 01:10:04 UTC) #8
perja
https://codereview.chromium.org/1711393002/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/1711393002/diff/1/device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothAdapter.java#newcode304 device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothAdapter.java:304: Log.w(TAG, "BluetoothStateReceiver#onReceive action: %d", state); On 2016/02/26 00:05:59, scheib ...
4 years, 10 months ago (2016-02-26 10:51:04 UTC) #9
Ted C
https://codereview.chromium.org/1711393002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/BluetoothChooserDialog.java File chrome/android/java/src/org/chromium/chrome/browser/BluetoothChooserDialog.java (right): https://codereview.chromium.org/1711393002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/BluetoothChooserDialog.java#newcode325 chrome/android/java/src/org/chromium/chrome/browser/BluetoothChooserDialog.java:325: mItemChooserDialog.clear(); unless this line can somehow call closeDialog(), the ...
4 years, 10 months ago (2016-02-26 17:50:35 UTC) #10
scheib
In order to land for M50 branch point I've addressed tedchoc's comments on a new ...
4 years, 10 months ago (2016-02-26 20:23:47 UTC) #11
Ted C
On 2016/02/26 20:23:47, scheib wrote: > In order to land for M50 branch point I've ...
4 years, 10 months ago (2016-02-26 20:51:32 UTC) #12
scheib
On 2016/02/26 20:51:32, Ted C wrote: > On 2016/02/26 20:23:47, scheib wrote: > > In ...
4 years, 10 months ago (2016-02-26 20:55:44 UTC) #13
Ted C
lgtm
4 years, 10 months ago (2016-02-26 20:57:57 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1711393002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1711393002/40001
4 years, 10 months ago (2016-02-26 21:12:56 UTC) #18
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 10 months ago (2016-02-26 21:38:00 UTC) #20
commit-bot: I haz the power
4 years, 10 months ago (2016-02-26 21:39:17 UTC) #22
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/3a38a463d379e27cb72a3c0334f76ecf4f8de8c4
Cr-Commit-Position: refs/heads/master@{#377982}

Powered by Google App Engine
This is Rietveld 408576698