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

Issue 2577183002: Add UMA for the number of devices in the chooser when a device is paired (Closed)

Created:
4 years ago by juncai
Modified:
4 years ago
CC:
chromium-reviews, extensions-reviews_chromium.org, mlamouri+watch-test-runner_chromium.org, mlamouri+watch-content_chromium.org, Peter Beverloo, jam, scheib+watch_chromium.org, ortuno+watch_chromium.org, asvitkine+watch_chromium.org, darin-cc_chromium.org, chromium-apps-reviews_chromium.org, jochen+watch_chromium.org, einbinder+watch-test-runner_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add UMA for the number of devices in the chooser when a device is paired In the case of not accepting all devices in the options that are given to WebBluetooth requestDevice(), knowing the number of devices that are in the chooser is helpful for researching some methods to distinguish devices with the same name. This CL adds UMA for the number of devices that are in the chooser when a device is paired. BUG=674195 Committed: https://crrev.com/63b736b52a58abd71e614cd0d2e69c9ecb2d7b3a Cr-Commit-Position: refs/heads/master@{#439593}

Patch Set 1 : add UMA for the number of devices in the chooser when a device is paired #

Patch Set 2 : not use static_cast #

Patch Set 3 : fixed android build #

Total comments: 2

Patch Set 4 : address comments #

Total comments: 2

Patch Set 5 : address comments #

Patch Set 6 : address comments #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -2 lines) Patch
M chrome/browser/ui/bluetooth/bluetooth_chooser_controller.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/browser/bluetooth/bluetooth_device_chooser_controller.h View 1 2 3 4 2 chunks +4 lines, -0 lines 0 comments Download
M content/browser/bluetooth/bluetooth_device_chooser_controller.cc View 1 2 3 4 3 chunks +6 lines, -1 line 2 comments Download
M content/browser/bluetooth/bluetooth_metrics.h View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/bluetooth/bluetooth_metrics.cc View 1 2 3 4 5 3 chunks +13 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 39 (26 generated)
juncai
Please take a look.
4 years ago (2016-12-15 22:46:46 UTC) #10
scheib
LGTM https://codereview.chromium.org/2577183002/diff/40001/chrome/browser/ui/bluetooth/bluetooth_chooser_controller.cc File chrome/browser/ui/bluetooth/bluetooth_chooser_controller.cc (right): https://codereview.chromium.org/2577183002/diff/40001/chrome/browser/ui/bluetooth/bluetooth_chooser_controller.cc#newcode127 chrome/browser/ui/bluetooth/bluetooth_chooser_controller.cc:127: if (!accept_all_devices_) Perhaps move the if check to ...
4 years ago (2016-12-16 06:36:16 UTC) #13
juncai
tedchoc@chromium.org: Please review changes in //chrome/browser/android reillyg@chromium.org: Please review changes in //chrome/browser/extensions //extensions/browser jam@chromium.org: Please ...
4 years ago (2016-12-16 18:34:40 UTC) #18
Reilly Grant (use Gerrit)
You would save a lot of plumbing if you implemented this entirely within content/browser/bluetooth/bluetooth_device_chooser_controller.cc.
4 years ago (2016-12-16 21:23:20 UTC) #19
Ilya Sherman
https://codereview.chromium.org/2577183002/diff/60001/chrome/browser/ui/bluetooth/bluetooth_chooser_controller.cc File chrome/browser/ui/bluetooth/bluetooth_chooser_controller.cc (right): https://codereview.chromium.org/2577183002/diff/60001/chrome/browser/ui/bluetooth/bluetooth_chooser_controller.cc#newcode40 chrome/browser/ui/bluetooth/bluetooth_chooser_controller.cc:40: num_of_devices); Please cap the value that can be recorded ...
4 years ago (2016-12-17 01:05:45 UTC) #22
juncai
On 2016/12/16 21:23:20, Reilly Grant wrote: > You would save a lot of plumbing if ...
4 years ago (2016-12-19 20:17:48 UTC) #25
juncai
https://codereview.chromium.org/2577183002/diff/60001/chrome/browser/ui/bluetooth/bluetooth_chooser_controller.cc File chrome/browser/ui/bluetooth/bluetooth_chooser_controller.cc (right): https://codereview.chromium.org/2577183002/diff/60001/chrome/browser/ui/bluetooth/bluetooth_chooser_controller.cc#newcode40 chrome/browser/ui/bluetooth/bluetooth_chooser_controller.cc:40: num_of_devices); On 2016/12/17 01:05:45, Ilya Sherman wrote: > Please ...
4 years ago (2016-12-19 20:17:57 UTC) #26
Reilly Grant (use Gerrit)
lgtm https://codereview.chromium.org/2577183002/diff/100001/content/browser/bluetooth/bluetooth_device_chooser_controller.cc File content/browser/bluetooth/bluetooth_device_chooser_controller.cc (right): https://codereview.chromium.org/2577183002/diff/100001/content/browser/bluetooth/bluetooth_device_chooser_controller.cc#newcode433 content/browser/bluetooth/bluetooth_device_chooser_controller.cc:433: device_ids_.insert(device_id); I was going to note that you ...
4 years ago (2016-12-19 20:52:17 UTC) #27
Ilya Sherman
metrics lgtm, thanks
4 years ago (2016-12-19 20:59:12 UTC) #28
juncai
https://codereview.chromium.org/2577183002/diff/100001/content/browser/bluetooth/bluetooth_device_chooser_controller.cc File content/browser/bluetooth/bluetooth_device_chooser_controller.cc (right): https://codereview.chromium.org/2577183002/diff/100001/content/browser/bluetooth/bluetooth_device_chooser_controller.cc#newcode433 content/browser/bluetooth/bluetooth_device_chooser_controller.cc:433: device_ids_.insert(device_id); On 2016/12/19 20:52:17, Reilly Grant wrote: > I ...
4 years ago (2016-12-19 22:16:13 UTC) #31
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/2577183002/100001
4 years ago (2016-12-19 22:17:13 UTC) #34
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years ago (2016-12-19 22:26:20 UTC) #37
commit-bot: I haz the power
4 years ago (2016-12-19 22:29:24 UTC) #39
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/63b736b52a58abd71e614cd0d2e69c9ecb2d7b3a
Cr-Commit-Position: refs/heads/master@{#439593}

Powered by Google App Engine
This is Rietveld 408576698