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

Issue 2210873003: bluetooth: Allow updates on chooser items. (Closed)

Created:
4 years, 4 months ago by ortuno
Modified:
4 years, 4 months ago
Reviewers:
jam, gone, juncai
CC:
chromium-apps-reviews_chromium.org, chromium-reviews, darin-cc_chromium.org, extensions-reviews_chromium.org, jochen+watch_chromium.org, mlamouri+watch-content_chromium.org, mlamouri+watch-test-runner_chromium.org, ortuno+watch_chromium.org, Peter Beverloo, scheib+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@bluetooth-fix-advertised-services
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

bluetooth: Allow updates on chooser items. Changes AddDevice to AddOrUpdateDevice. This will allow to post updates when a device changes names or in the future rssi. Second of three patches to improve the devices that appear in the chooser: [1] Replace old advertised uuids (http://crrev.com/2205693003) [2] This patch [3] Only add new devices, connected devices and devices that changed (http://crrev.com/2217573002) BUG=508904 Committed: https://crrev.com/4178c185640b37e621703ac415141ac7caae06f4 Cr-Commit-Position: refs/heads/master@{#410954}

Patch Set 1 #

Patch Set 2 : Implement Android #

Patch Set 3 : Fix content_shell #

Total comments: 15

Patch Set 4 : Address juncai's comments #

Patch Set 5 : Rebase #

Patch Set 6 : Rebase #

Patch Set 7 : Change interface #

Total comments: 2

Patch Set 8 : Add comment about rssi #

Total comments: 2

Patch Set 9 : Make const #

Unified diffs Side-by-side diffs Delta from patch set Stats (+205 lines, -83 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/BluetoothChooserDialog.java View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ItemChooserDialog.java View 1 5 chunks +21 lines, -8 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/UsbChooserDialog.java View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/BluetoothChooserDialogTest.java View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/ItemChooserDialogTest.java View 1 8 chunks +29 lines, -12 lines 0 comments Download
M chrome/browser/ui/android/bluetooth_chooser_android.h View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -2 lines 0 comments Download
M chrome/browser/ui/android/bluetooth_chooser_android.cc View 1 2 3 4 5 6 7 8 1 chunk +8 lines, -3 lines 0 comments Download
M chrome/browser/ui/bluetooth/bluetooth_chooser_controller.h View 1 2 3 4 5 6 7 8 2 chunks +13 lines, -6 lines 0 comments Download
M chrome/browser/ui/bluetooth/bluetooth_chooser_controller.cc View 1 2 3 4 5 6 7 8 4 chunks +55 lines, -25 lines 0 comments Download
M chrome/browser/ui/bluetooth/bluetooth_chooser_desktop.h View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -2 lines 0 comments Download
M chrome/browser/ui/bluetooth/bluetooth_chooser_desktop.cc View 1 2 3 4 5 6 7 8 1 chunk +10 lines, -3 lines 0 comments Download
M chrome/browser/ui/bluetooth/chrome_extension_bluetooth_chooser.h View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -2 lines 0 comments Download
M chrome/browser/ui/bluetooth/chrome_extension_bluetooth_chooser.cc View 1 2 3 4 5 6 7 8 1 chunk +9 lines, -3 lines 0 comments Download
M content/browser/bluetooth/bluetooth_device_chooser_controller.cc View 1 2 3 4 5 6 1 chunk +8 lines, -1 line 0 comments Download
M content/public/browser/bluetooth_chooser.h View 1 2 3 4 5 6 7 8 1 chunk +9 lines, -3 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_bluetooth_chooser_factory.cc View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -2 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_first_device_bluetooth_chooser.h View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -2 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_first_device_bluetooth_chooser.cc View 1 2 3 4 5 6 7 8 1 chunk +8 lines, -4 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 61 (39 generated)
ortuno
juncai: PTAL
4 years, 4 months ago (2016-08-04 19:57:44 UTC) #12
juncai
Instead of having AddOrUpdateDevice(), does it make sense to have a separate function: UpdateDevice()? https://codereview.chromium.org/2210873003/diff/40001/chrome/browser/ui/bluetooth/bluetooth_chooser_controller.cc ...
4 years, 4 months ago (2016-08-04 21:52:25 UTC) #13
ortuno
https://codereview.chromium.org/2210873003/diff/40001/chrome/browser/ui/bluetooth/bluetooth_chooser_controller.cc File chrome/browser/ui/bluetooth/bluetooth_chooser_controller.cc (right): https://codereview.chromium.org/2210873003/diff/40001/chrome/browser/ui/bluetooth/bluetooth_chooser_controller.cc#newcode58 chrome/browser/ui/bluetooth/bluetooth_chooser_controller.cc:58: const auto& device_name_it = device_id_to_name_map_.find(device_id); On 2016/08/04 at 21:52:23, ...
4 years, 4 months ago (2016-08-05 02:16:09 UTC) #15
juncai
//chrome/browser/ui/bluetooth/ LGTM. https://codereview.chromium.org/2210873003/diff/40001/content/public/browser/bluetooth_chooser.h File content/public/browser/bluetooth_chooser.h (right): https://codereview.chromium.org/2210873003/diff/40001/content/public/browser/bluetooth_chooser.h#newcode73 content/public/browser/bluetooth_chooser.h:73: virtual void AddOrUpdateDevice(const std::string& device_id, On 2016/08/05 ...
4 years, 4 months ago (2016-08-05 20:44:30 UTC) #19
ortuno
tedchoc: PTAL at chrome/android
4 years, 4 months ago (2016-08-05 20:49:15 UTC) #21
ortuno
dfalcantara: tedchoc is OOO. PTAL at chrome/android
4 years, 4 months ago (2016-08-08 15:56:20 UTC) #23
gone
chrome/android lgtm
4 years, 4 months ago (2016-08-08 17:09:42 UTC) #24
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/2210873003/70001
4 years, 4 months ago (2016-08-09 14:13:46 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/233828)
4 years, 4 months ago (2016-08-09 14:20:09 UTC) #29
ortuno
juncai: PTAL, I changed AddOrUpdate to take the discussed arguments.
4 years, 4 months ago (2016-08-09 17:58:12 UTC) #30
juncai
https://codereview.chromium.org/2210873003/diff/110001/content/public/browser/bluetooth_chooser.h File content/public/browser/bluetooth_chooser.h (right): https://codereview.chromium.org/2210873003/diff/110001/content/public/browser/bluetooth_chooser.h#newcode78 content/public/browser/bluetooth_chooser.h:78: int8_t* rssi) {} Some questions: 1. Does AddOrUpdateDevice() need ...
4 years, 4 months ago (2016-08-09 19:14:45 UTC) #35
ortuno
https://codereview.chromium.org/2210873003/diff/110001/content/public/browser/bluetooth_chooser.h File content/public/browser/bluetooth_chooser.h (right): https://codereview.chromium.org/2210873003/diff/110001/content/public/browser/bluetooth_chooser.h#newcode78 content/public/browser/bluetooth_chooser.h:78: int8_t* rssi) {} On 2016/08/09 at 19:14:44, juncai wrote: ...
4 years, 4 months ago (2016-08-09 19:23:12 UTC) #37
ortuno
https://codereview.chromium.org/2210873003/diff/110001/content/public/browser/bluetooth_chooser.h File content/public/browser/bluetooth_chooser.h (right): https://codereview.chromium.org/2210873003/diff/110001/content/public/browser/bluetooth_chooser.h#newcode78 content/public/browser/bluetooth_chooser.h:78: int8_t* rssi) {} On 2016/08/09 at 19:14:44, juncai wrote: ...
4 years, 4 months ago (2016-08-09 19:23:17 UTC) #38
juncai
LGTM wit a nit. https://codereview.chromium.org/2210873003/diff/130001/content/public/browser/bluetooth_chooser.h File content/public/browser/bluetooth_chooser.h (right): https://codereview.chromium.org/2210873003/diff/130001/content/public/browser/bluetooth_chooser.h#newcode79 content/public/browser/bluetooth_chooser.h:79: int8_t* rssi) {} nit: maybe ...
4 years, 4 months ago (2016-08-09 19:30:26 UTC) #40
ortuno
Thanks! https://codereview.chromium.org/2210873003/diff/130001/content/public/browser/bluetooth_chooser.h File content/public/browser/bluetooth_chooser.h (right): https://codereview.chromium.org/2210873003/diff/130001/content/public/browser/bluetooth_chooser.h#newcode79 content/public/browser/bluetooth_chooser.h:79: int8_t* rssi) {} On 2016/08/09 at 19:30:26, juncai ...
4 years, 4 months ago (2016-08-09 19:52:48 UTC) #43
ortuno
jam: PTAL at content/public/browser/bluetooth_chooser.h
4 years, 4 months ago (2016-08-09 19:53:31 UTC) #46
scheib
I think that patch description URLs are incorrect for [1] in this and following patch.
4 years, 4 months ago (2016-08-09 20:25:04 UTC) #49
ortuno
On 2016/08/09 at 20:25:04, scheib wrote: > I think that patch description URLs are incorrect ...
4 years, 4 months ago (2016-08-09 20:34:03 UTC) #52
jam
On 2016/08/09 19:53:31, ortuno wrote: > jam: PTAL at content/public/browser/bluetooth_chooser.h lgtm
4 years, 4 months ago (2016-08-09 22:29:26 UTC) #53
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/2210873003/150001
4 years, 4 months ago (2016-08-10 04:31:40 UTC) #58
commit-bot: I haz the power
Committed patchset #9 (id:150001)
4 years, 4 months ago (2016-08-10 04:36:01 UTC) #59
commit-bot: I haz the power
4 years, 4 months ago (2016-08-10 04:37:54 UTC) #61
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/4178c185640b37e621703ac415141ac7caae06f4
Cr-Commit-Position: refs/heads/master@{#410954}

Powered by Google App Engine
This is Rietveld 408576698