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

Issue 13872017: Bluetooth: gather usage metrics (Closed)

Created:
7 years, 8 months ago by keybuk
Modified:
7 years, 7 months ago
CC:
chromium-reviews, MAD, jar (doing other things), krisr, deymo
Visibility:
Public.

Description

Bluetooth: gather usage metrics Resubmit; this was reverted in 196993 due to a missing fake initialization in a unit test which has now been added. BUG=233820 TEST=chrome:///histograms R=isherman@chromium.org, satorux@chromium.org, youngki@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=196990

Patch Set 1 #

Patch Set 2 : Only include ChromeOS specific header on ChromeOS #

Total comments: 22

Patch Set 3 : Address review comments #

Patch Set 4 : Still need a final return #

Patch Set 5 : Clean up comments and remove debugging #

Patch Set 6 : Rebase: patch was applying badly on HEAD and failing on trybots #

Total comments: 8

Patch Set 7 : Further review comments #

Total comments: 6

Patch Set 8 : Missing SetBluetoothAdapter method; remove weakptr; add DCHECKs #

Total comments: 4

Patch Set 9 : Use size() and DCHECK_EQ #

Patch Set 10 : Rebase to get over WebKit roll issue #

Patch Set 11 : Fix DCHECK_EQ - compile error hidden by previous WebKit issues #

Total comments: 5

Patch Set 12 : Rebase since Cellular.* appeared under us #

Unified diffs Side-by-side diffs Delta from patch set Stats (+466 lines, -12 lines) Patch
M chrome/browser/metrics/metrics_log.h View 1 2 3 4 5 6 7 3 chunks +15 lines, -0 lines 0 comments Download
M chrome/browser/metrics/metrics_log.cc View 1 2 3 4 5 6 7 8 9 10 6 chunks +97 lines, -0 lines 0 comments Download
M chrome/common/metrics/proto/system_profile.proto View 1 2 3 4 5 6 2 chunks +60 lines, -5 lines 0 comments Download
M chromeos/dbus/fake_bluetooth_device_client.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_experimental_chromeos.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +14 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_device.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +14 lines, -3 lines 0 comments Download
M device/bluetooth/bluetooth_device_chromeos.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +4 lines, -1 line 0 comments Download
M device/bluetooth/bluetooth_device_chromeos.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +12 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_device_experimental_chromeos.h View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +13 lines, -1 line 0 comments Download
M device/bluetooth/bluetooth_device_experimental_chromeos.cc View 1 2 3 4 5 6 7 8 9 10 11 15 chunks +152 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_device_mac.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +4 lines, -1 line 0 comments Download
M device/bluetooth/bluetooth_device_mac.mm View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +12 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_device_win.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +4 lines, -1 line 0 comments Download
M device/bluetooth/bluetooth_device_win.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +12 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_experimental_chromeos_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -0 lines 0 comments Download
M device/bluetooth/test/mock_bluetooth_device.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +44 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
keybuk
youngki: for device/bluetooth/ OWNERS isherman: for /metrics/ OWNERS
7 years, 8 months ago (2013-04-20 00:07:44 UTC) #1
Ilya Sherman
https://codereview.chromium.org/13872017/diff/4001/chrome/browser/metrics/metrics_log.cc File chrome/browser/metrics/metrics_log.cc (right): https://codereview.chromium.org/13872017/diff/4001/chrome/browser/metrics/metrics_log.cc#newcode316 chrome/browser/metrics/metrics_log.cc:316: "usb:p[0-9a-fA-F][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]" nit: Might help with readability to add a ...
7 years, 8 months ago (2013-04-20 04:54:02 UTC) #2
youngki
lgtm for device/bluetooth
7 years, 8 months ago (2013-04-22 15:20:32 UTC) #3
keybuk
https://codereview.chromium.org/13872017/diff/4001/chrome/browser/metrics/metrics_log.cc File chrome/browser/metrics/metrics_log.cc (right): https://codereview.chromium.org/13872017/diff/4001/chrome/browser/metrics/metrics_log.cc#newcode351 chrome/browser/metrics/metrics_log.cc:351: SystemProfileProto::Bluetooth::PairedDevice::DEVICE_KEYBOARD_MOUSE_COMBO; On 2013/04/20 04:54:02, Ilya Sherman wrote: > nit: ...
7 years, 8 months ago (2013-04-22 19:30:50 UTC) #4
keybuk
ptal youngki: this adds new API to BluetoothDevice to avoid the cast to ExperimentalChromeOS in ...
7 years, 8 months ago (2013-04-22 19:31:58 UTC) #5
youngki
lgtm I think in the future we should just use BluetoothAdapterChromeOS directly instead of BluetoothAdapter ...
7 years, 8 months ago (2013-04-22 20:10:34 UTC) #6
Ilya Sherman
https://codereview.chromium.org/13872017/diff/4001/chrome/browser/metrics/metrics_log.cc File chrome/browser/metrics/metrics_log.cc (right): https://codereview.chromium.org/13872017/diff/4001/chrome/browser/metrics/metrics_log.cc#newcode351 chrome/browser/metrics/metrics_log.cc:351: SystemProfileProto::Bluetooth::PairedDevice::DEVICE_KEYBOARD_MOUSE_COMBO; On 2013/04/22 19:30:51, keybuk wrote: > On 2013/04/20 ...
7 years, 8 months ago (2013-04-23 00:09:42 UTC) #7
keybuk
https://codereview.chromium.org/13872017/diff/4001/chrome/common/metrics/proto/system_profile.proto File chrome/common/metrics/proto/system_profile.proto (right): https://codereview.chromium.org/13872017/diff/4001/chrome/common/metrics/proto/system_profile.proto#newcode400 chrome/common/metrics/proto/system_profile.proto:400: // Vendor prefix of the Bluetooth address. On 2013/04/23 ...
7 years, 8 months ago (2013-04-23 00:41:41 UTC) #8
Ilya Sherman
https://codereview.chromium.org/13872017/diff/31001/chrome/browser/metrics/metrics_log.cc File chrome/browser/metrics/metrics_log.cc (right): https://codereview.chromium.org/13872017/diff/31001/chrome/browser/metrics/metrics_log.cc#newcode927 chrome/browser/metrics/metrics_log.cc:927: base::Bind(&MetricsLog::SetBluetoothAdapter, Looks like the body for this method is ...
7 years, 8 months ago (2013-04-23 01:01:55 UTC) #9
keybuk
https://codereview.chromium.org/13872017/diff/31001/chrome/browser/metrics/metrics_log.cc File chrome/browser/metrics/metrics_log.cc (right): https://codereview.chromium.org/13872017/diff/31001/chrome/browser/metrics/metrics_log.cc#newcode927 chrome/browser/metrics/metrics_log.cc:927: base::Bind(&MetricsLog::SetBluetoothAdapter, On 2013/04/23 01:01:55, Ilya Sherman wrote: > Looks ...
7 years, 8 months ago (2013-04-23 01:17:54 UTC) #10
Ilya Sherman
Thanks. metrics/ changes LG, but I'd like to hold off on final approval until you ...
7 years, 8 months ago (2013-04-23 04:40:36 UTC) #11
keybuk
https://codereview.chromium.org/13872017/diff/35002/chrome/browser/metrics/metrics_log.cc File chrome/browser/metrics/metrics_log.cc (right): https://codereview.chromium.org/13872017/diff/35002/chrome/browser/metrics/metrics_log.cc#newcode1169 chrome/browser/metrics/metrics_log.cc:1169: if (address.length() > 9 && On 2013/04/23 04:40:36, Ilya ...
7 years, 8 months ago (2013-04-23 16:50:42 UTC) #12
satorux1
chromeos/dbus/ lgtm. optional comments: https://codereview.chromium.org/13872017/diff/42027/device/bluetooth/bluetooth_device_experimental_chromeos.cc File device/bluetooth/bluetooth_device_experimental_chromeos.cc (right): https://codereview.chromium.org/13872017/diff/42027/device/bluetooth/bluetooth_device_experimental_chromeos.cc#newcode60 device/bluetooth/bluetooth_device_experimental_chromeos.cc:60: void ParseModalias(const dbus::ObjectPath& object_path, function ...
7 years, 8 months ago (2013-04-23 21:23:15 UTC) #13
Ilya Sherman
https://codereview.chromium.org/13872017/diff/42027/device/bluetooth/bluetooth_device_experimental_chromeos.cc File device/bluetooth/bluetooth_device_experimental_chromeos.cc (right): https://codereview.chromium.org/13872017/diff/42027/device/bluetooth/bluetooth_device_experimental_chromeos.cc#newcode757 device/bluetooth/bluetooth_device_experimental_chromeos.cc:757: switch (error_code) { On 2013/04/23 21:23:15, satorux1 wrote: > ...
7 years, 8 months ago (2013-04-23 21:32:26 UTC) #14
keybuk
https://codereview.chromium.org/13872017/diff/42027/device/bluetooth/bluetooth_device_experimental_chromeos.cc File device/bluetooth/bluetooth_device_experimental_chromeos.cc (right): https://codereview.chromium.org/13872017/diff/42027/device/bluetooth/bluetooth_device_experimental_chromeos.cc#newcode60 device/bluetooth/bluetooth_device_experimental_chromeos.cc:60: void ParseModalias(const dbus::ObjectPath& object_path, On 2013/04/23 21:23:15, satorux1 wrote: ...
7 years, 8 months ago (2013-04-23 21:34:40 UTC) #15
keybuk
Noah Richmond has approved the design doc re: privacy
7 years, 8 months ago (2013-04-26 21:43:45 UTC) #16
Ilya Sherman
On 2013/04/26 21:43:45, keybuk wrote: > Noah Richmond has approved the design doc re: privacy ...
7 years, 8 months ago (2013-04-26 21:54:29 UTC) #17
Ilya Sherman
Alright, looks like there aren't any serious concerns from the privacy or legal teams, so ...
7 years, 8 months ago (2013-04-27 22:52:31 UTC) #18
keybuk
7 years, 7 months ago (2013-04-28 17:03:15 UTC) #19
Message was sent while issue was closed.
Committed patchset #12 manually as r196990 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698