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

Issue 374203004: mac: Add metrics to record Bluetooth availability and capabilities. (Closed)

Created:
6 years, 5 months ago by erikchen
Modified:
6 years, 5 months ago
CC:
chromium-reviews, asvitkine+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

mac: Add metrics to record Bluetooth availability and capabilities. The new Handoff feature in OSX 10.10 only works with devices that support Bluetooth LE. Record metrics to determine the percentage of Chrome users that this affects. BUG=392166 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=282771

Patch Set 1 : First #

Total comments: 25

Patch Set 2 : Comments from avi, add another enum for the metric. #

Patch Set 3 : Use ScopedCFTypeRef for matching_dict. #

Patch Set 4 : Rebase against origin/master #

Total comments: 8

Patch Set 5 : Comments from mark. #

Total comments: 12

Patch Set 6 : Comments from isherman. #

Total comments: 12

Patch Set 7 : Comments from mark, round two. #

Total comments: 2

Patch Set 8 : Comments from isherman, round two. #

Total comments: 4

Patch Set 9 : Comments from mark, round three. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+141 lines, -0 lines) Patch
M base/mac/sdk_forward_declarations.h View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
A chrome/browser/mac/bluetooth_utility.h View 1 2 3 4 5 6 7 1 chunk +28 lines, -0 lines 0 comments Download
A chrome/browser/mac/bluetooth_utility.mm View 1 2 3 4 5 6 7 8 1 chunk +82 lines, -0 lines 0 comments Download
M chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc View 1 2 3 4 5 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 2 chunks +16 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (0 generated)
erikchen
Please review.
6 years, 5 months ago (2014-07-08 23:16:46 UTC) #1
Avi (use Gerrit)
https://codereview.chromium.org/374203004/diff/40001/chrome/browser/mac/hardware_utility.mm File chrome/browser/mac/hardware_utility.mm (right): https://codereview.chromium.org/374203004/diff/40001/chrome/browser/mac/hardware_utility.mm#newcode16 chrome/browser/mac/hardware_utility.mm:16: CFMutableDictionaryRef matching_dict = base::ScopedCFTypeRef<CFMutableDictionaryRef> https://codereview.chromium.org/374203004/diff/40001/chrome/browser/mac/hardware_utility.mm#newcode24 chrome/browser/mac/hardware_utility.mm:24: Immediately after IOServiceGetMatchingServices, ...
6 years, 5 months ago (2014-07-08 23:32:04 UTC) #2
Avi (use Gerrit)
https://codereview.chromium.org/374203004/diff/40001/chrome/browser/mac/hardware_utility.mm File chrome/browser/mac/hardware_utility.mm (right): https://codereview.chromium.org/374203004/diff/40001/chrome/browser/mac/hardware_utility.mm#newcode40 chrome/browser/mac/hardware_utility.mm:40: // Check the properties for an LMP version. Is ...
6 years, 5 months ago (2014-07-08 23:32:46 UTC) #3
Avi (use Gerrit)
https://codereview.chromium.org/374203004/diff/40001/chrome/browser/mac/hardware_utility.mm File chrome/browser/mac/hardware_utility.mm (right): https://codereview.chromium.org/374203004/diff/40001/chrome/browser/mac/hardware_utility.mm#newcode1 chrome/browser/mac/hardware_utility.mm:1: // Copyright (c) 2011 The Chromium Authors. All rights ...
6 years, 5 months ago (2014-07-08 23:38:20 UTC) #4
erikchen
avi: PTAL Such utility. I had no idea that Chromium had so many helper functions/objects ...
6 years, 5 months ago (2014-07-09 00:18:57 UTC) #5
Avi (use Gerrit)
> Such utility. So helpers. Much objects. Wow. https://codereview.chromium.org/374203004/diff/40001/chrome/browser/mac/hardware_utility.mm File chrome/browser/mac/hardware_utility.mm (right): https://codereview.chromium.org/374203004/diff/40001/chrome/browser/mac/hardware_utility.mm#newcode16 chrome/browser/mac/hardware_utility.mm:16: CFMutableDictionaryRef ...
6 years, 5 months ago (2014-07-09 01:54:05 UTC) #6
Avi (use Gerrit)
https://codereview.chromium.org/374203004/diff/40001/chrome/browser/mac/hardware_utility.mm File chrome/browser/mac/hardware_utility.mm (right): https://codereview.chromium.org/374203004/diff/40001/chrome/browser/mac/hardware_utility.mm#newcode16 chrome/browser/mac/hardware_utility.mm:16: CFMutableDictionaryRef matching_dict = Actually, release() is a lot dumber ...
6 years, 5 months ago (2014-07-09 01:55:45 UTC) #7
erikchen
avi: PTAL https://codereview.chromium.org/374203004/diff/40001/chrome/browser/mac/hardware_utility.mm File chrome/browser/mac/hardware_utility.mm (right): https://codereview.chromium.org/374203004/diff/40001/chrome/browser/mac/hardware_utility.mm#newcode16 chrome/browser/mac/hardware_utility.mm:16: CFMutableDictionaryRef matching_dict = On 2014/07/09 01:54:05, Avi ...
6 years, 5 months ago (2014-07-09 02:04:21 UTC) #8
Avi (use Gerrit)
LGTM! https://codereview.chromium.org/374203004/diff/40001/chrome/browser/mac/hardware_utility.mm File chrome/browser/mac/hardware_utility.mm (right): https://codereview.chromium.org/374203004/diff/40001/chrome/browser/mac/hardware_utility.mm#newcode16 chrome/browser/mac/hardware_utility.mm:16: CFMutableDictionaryRef matching_dict = Yeah, it's a non-awesome name ...
6 years, 5 months ago (2014-07-09 03:36:43 UTC) #9
erikchen
The CQ bit was checked by erikchen@chromium.org
6 years, 5 months ago (2014-07-09 03:46:55 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/erikchen@chromium.org/374203004/100001
6 years, 5 months ago (2014-07-09 03:47:50 UTC) #11
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_aosp on tryserver.chromium ...
6 years, 5 months ago (2014-07-09 06:42:34 UTC) #12
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-09 06:43:53 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/26330)
6 years, 5 months ago (2014-07-09 06:43:54 UTC) #14
erikchen
mark: Looking for owner review of chrome/browser/mac/* isherman: Looking for owner review of chrome/browser/metrics/* and ...
6 years, 5 months ago (2014-07-09 17:12:42 UTC) #15
Mark Mentovai
https://codereview.chromium.org/374203004/diff/120001/chrome/browser/mac/hardware_utility.h File chrome/browser/mac/hardware_utility.h (right): https://codereview.chromium.org/374203004/diff/120001/chrome/browser/mac/hardware_utility.h#newcode12 chrome/browser/mac/hardware_utility.h:12: BLUETOOTH_NOT_AVAILABLE = 0, The = 0 is fine here, ...
6 years, 5 months ago (2014-07-09 17:53:01 UTC) #16
erikchen
mark: PTAL https://codereview.chromium.org/374203004/diff/120001/chrome/browser/mac/hardware_utility.h File chrome/browser/mac/hardware_utility.h (right): https://codereview.chromium.org/374203004/diff/120001/chrome/browser/mac/hardware_utility.h#newcode12 chrome/browser/mac/hardware_utility.h:12: BLUETOOTH_NOT_AVAILABLE = 0, On 2014/07/09 17:53:00, Mark ...
6 years, 5 months ago (2014-07-09 20:14:43 UTC) #17
Ilya Sherman
https://codereview.chromium.org/374203004/diff/140001/chrome/browser/mac/hardware_utility.h File chrome/browser/mac/hardware_utility.h (right): https://codereview.chromium.org/374203004/diff/140001/chrome/browser/mac/hardware_utility.h#newcode22 chrome/browser/mac/hardware_utility.h:22: } // namespace hardware_utility nit: foo_utility and foo_util classes ...
6 years, 5 months ago (2014-07-09 21:19:34 UTC) #18
erikchen
isherman: PTAL mark: PTAL https://codereview.chromium.org/374203004/diff/140001/chrome/browser/mac/hardware_utility.h File chrome/browser/mac/hardware_utility.h (right): https://codereview.chromium.org/374203004/diff/140001/chrome/browser/mac/hardware_utility.h#newcode22 chrome/browser/mac/hardware_utility.h:22: } // namespace hardware_utility On ...
6 years, 5 months ago (2014-07-11 17:25:44 UTC) #19
Mark Mentovai
https://codereview.chromium.org/374203004/diff/200001/base/mac/sdk_forward_declarations.h File base/mac/sdk_forward_declarations.h (right): https://codereview.chromium.org/374203004/diff/200001/base/mac/sdk_forward_declarations.h#newcode25 base/mac/sdk_forward_declarations.h:25: kBluetoothFeatureLESupportedController = (1 << 6L), Can you put this ...
6 years, 5 months ago (2014-07-11 18:05:05 UTC) #20
erikchen
mark: PTAL https://codereview.chromium.org/374203004/diff/200001/base/mac/sdk_forward_declarations.h File base/mac/sdk_forward_declarations.h (right): https://codereview.chromium.org/374203004/diff/200001/base/mac/sdk_forward_declarations.h#newcode25 base/mac/sdk_forward_declarations.h:25: kBluetoothFeatureLESupportedController = (1 << 6L), On 2014/07/11 ...
6 years, 5 months ago (2014-07-11 18:56:57 UTC) #21
Ilya Sherman
Histograms LGTM, thanks. https://codereview.chromium.org/374203004/diff/240001/chrome/browser/mac/bluetooth_utility.h File chrome/browser/mac/bluetooth_utility.h (right): https://codereview.chromium.org/374203004/diff/240001/chrome/browser/mac/bluetooth_utility.h#newcode17 chrome/browser/mac/bluetooth_utility.h:17: // On OSX 10.6, if the ...
6 years, 5 months ago (2014-07-11 19:03:52 UTC) #22
erikchen
https://codereview.chromium.org/374203004/diff/240001/chrome/browser/mac/bluetooth_utility.h File chrome/browser/mac/bluetooth_utility.h (right): https://codereview.chromium.org/374203004/diff/240001/chrome/browser/mac/bluetooth_utility.h#newcode17 chrome/browser/mac/bluetooth_utility.h:17: // On OSX 10.6, if the LMP version supports ...
6 years, 5 months ago (2014-07-11 20:34:38 UTC) #23
Mark Mentovai
LGTM with these changes. https://codereview.chromium.org/374203004/diff/260001/base/mac/sdk_forward_declarations.h File base/mac/sdk_forward_declarations.h (right): https://codereview.chromium.org/374203004/diff/260001/base/mac/sdk_forward_declarations.h#newcode159 base/mac/sdk_forward_declarations.h:159: enum { This does not ...
6 years, 5 months ago (2014-07-11 22:26:30 UTC) #24
erikchen
https://codereview.chromium.org/374203004/diff/260001/base/mac/sdk_forward_declarations.h File base/mac/sdk_forward_declarations.h (right): https://codereview.chromium.org/374203004/diff/260001/base/mac/sdk_forward_declarations.h#newcode159 base/mac/sdk_forward_declarations.h:159: enum { On 2014/07/11 22:26:29, Mark Mentovai wrote: > ...
6 years, 5 months ago (2014-07-11 22:39:59 UTC) #25
erikchen
The CQ bit was checked by erikchen@chromium.org
6 years, 5 months ago (2014-07-11 22:40:06 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/erikchen@chromium.org/374203004/300001
6 years, 5 months ago (2014-07-11 22:41:53 UTC) #27
commit-bot: I haz the power
6 years, 5 months ago (2014-07-12 01:27:59 UTC) #28
Message was sent while issue was closed.
Change committed as 282771

Powered by Google App Engine
This is Rietveld 408576698