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

Issue 2205693003: bluetooth: Replace old advertised uuids (Closed)

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

Description

bluetooth: Replace old advertised uuids Two changes: * Notify of DeviceChanged for any new advertisement received. * When a new Advertisement is received replace old cached UUIDs. First of three patches to improve the devices that appear in the chooser: [1] This patch [2] Allow updates on chooser items (http://crrev.com/2210873003) [3] Only add new devices, connected devices and devices that changed (http://crrev.com/2217573002) BUG=508904 Committed: https://crrev.com/8a06300cf9c86285d6f8f3b789549614fd19463e Cr-Commit-Position: refs/heads/master@{#410541}

Patch Set 1 #

Patch Set 2 : Refactor more #

Patch Set 3 : Fix mac #

Patch Set 4 : Services while connected #

Patch Set 5 : Fix mac #

Total comments: 16

Patch Set 6 : Initialize list after discovery. Missing mac test and comments. #

Patch Set 7 : Mac test and docs #

Total comments: 2

Patch Set 8 : Improve comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+193 lines, -86 lines) Patch
M device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothAdapter.java View 1 3 chunks +11 lines, -2 lines 0 comments Download
M device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothDevice.java View 1 7 6 chunks +0 lines, -26 lines 0 comments Download
M device/bluetooth/bluetooth_adapter.h View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_android.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_android.cc View 1 7 2 chunks +5 lines, -5 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_mac.mm View 1 chunk +1 line, -1 line 0 comments Download
M device/bluetooth/bluetooth_adapter_unittest.cc View 1 2 chunks +4 lines, -9 lines 0 comments Download
M device/bluetooth/bluetooth_device.h View 1 2 3 4 5 6 4 chunks +24 lines, -5 lines 0 comments Download
M device/bluetooth/bluetooth_device.cc View 1 2 3 4 5 3 chunks +25 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_device_android.h View 1 2 chunks +3 lines, -5 lines 0 comments Download
M device/bluetooth/bluetooth_device_android.cc View 1 2 3 4 5 7 4 chunks +9 lines, -17 lines 0 comments Download
M device/bluetooth/bluetooth_device_unittest.cc View 1 2 3 4 5 6 7 1 chunk +75 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_low_energy_device_mac.h View 1 2 2 chunks +0 lines, -4 lines 0 comments Download
M device/bluetooth/bluetooth_low_energy_device_mac.mm View 1 2 3 4 5 6 7 4 chunks +8 lines, -9 lines 0 comments Download
M device/bluetooth/bluetooth_low_energy_discovery_manager_mac.mm View 1 2 3 4 5 6 7 1 chunk +9 lines, -1 line 0 comments Download
M device/bluetooth/test/bluetooth_test.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M device/bluetooth/test/bluetooth_test_mac.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M device/bluetooth/test/bluetooth_test_mac.mm View 1 2 3 4 5 6 1 chunk +8 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 32 (22 generated)
ortuno
scheib: PTAL
4 years, 4 months ago (2016-08-04 19:56:09 UTC) #14
scheib
https://codereview.chromium.org/2205693003/diff/80001/device/bluetooth/bluetooth_adapter_android.cc File device/bluetooth/bluetooth_adapter_android.cc (right): https://codereview.chromium.org/2205693003/diff/80001/device/bluetooth/bluetooth_adapter_android.cc#newcode206 device/bluetooth/bluetooth_adapter_android.cc:206: FOR_EACH_OBSERVER(BluetoothAdapter::Observer, observers_, Only notify if UUIDs are different. https://codereview.chromium.org/2205693003/diff/80001/device/bluetooth/bluetooth_adapter_mac.mm ...
4 years, 4 months ago (2016-08-05 18:49:31 UTC) #15
ortuno
https://codereview.chromium.org/2205693003/diff/80001/device/bluetooth/bluetooth_adapter_android.cc File device/bluetooth/bluetooth_adapter_android.cc (right): https://codereview.chromium.org/2205693003/diff/80001/device/bluetooth/bluetooth_adapter_android.cc#newcode206 device/bluetooth/bluetooth_adapter_android.cc:206: FOR_EACH_OBSERVER(BluetoothAdapter::Observer, observers_, On 2016/08/05 at 18:49:31, scheib wrote: > ...
4 years, 4 months ago (2016-08-05 23:00:17 UTC) #18
scheib
Thanks, I understand more now! LGTM with comments: https://codereview.chromium.org/2205693003/diff/80001/device/bluetooth/bluetooth_adapter_android.cc File device/bluetooth/bluetooth_adapter_android.cc (right): https://codereview.chromium.org/2205693003/diff/80001/device/bluetooth/bluetooth_adapter_android.cc#newcode206 device/bluetooth/bluetooth_adapter_android.cc:206: FOR_EACH_OBSERVER(BluetoothAdapter::Observer, ...
4 years, 4 months ago (2016-08-06 00:21:41 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2205693003/140001
4 years, 4 months ago (2016-08-08 22:56:20 UTC) #24
ortuno
https://codereview.chromium.org/2205693003/diff/80001/device/bluetooth/bluetooth_adapter_android.cc File device/bluetooth/bluetooth_adapter_android.cc (right): https://codereview.chromium.org/2205693003/diff/80001/device/bluetooth/bluetooth_adapter_android.cc#newcode206 device/bluetooth/bluetooth_adapter_android.cc:206: FOR_EACH_OBSERVER(BluetoothAdapter::Observer, observers_, On 2016/08/06 at 00:21:41, scheib wrote: > ...
4 years, 4 months ago (2016-08-08 22:56:39 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_x86-generic_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_x86-generic_chromium_compile_only_ng/builds/179978)
4 years, 4 months ago (2016-08-08 23:07:04 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2205693003/140001
4 years, 4 months ago (2016-08-08 23:23:19 UTC) #29
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 4 months ago (2016-08-09 02:35:25 UTC) #30
commit-bot: I haz the power
4 years, 4 months ago (2016-08-09 02:37:56 UTC) #32
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/8a06300cf9c86285d6f8f3b789549614fd19463e
Cr-Commit-Position: refs/heads/master@{#410541}

Powered by Google App Engine
This is Rietveld 408576698