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

Issue 2771893002: Move Bluetooth.Web.FunctionCall.Count UMA from browser to WebKit (Closed)

Created:
3 years, 9 months ago by juncai
Modified:
3 years, 8 months ago
Reviewers:
haraken, scheib, ortuno, dcheng
CC:
blink-reviews, chromium-reviews, darin-cc_chromium.org, jam, ortuno+watch_chromium.org, scheib+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Move Bluetooth.Web.FunctionCall.Count UMA from browser to WebKit Based on the discussion: https://codereview.chromium.org/2752663002/diff/140001/content/browser/bluetooth/web_bluetooth_service_impl.cc UMAWebBluetoothFunction::REMOTE_GATT_SERVER_DISCONNECT UMA was intended to count how often JavaScript called disconnect, but with the change of the above CL, it also counts when the device disconnects and the browser is informed, or for any other reason when the client is disconnected. So we think moving Bluetooth.Web.FunctionCall.Count UMA from browser to WebKit makes sense since those UMA counts the function calls on the renderer side. BUG=703970 Review-Url: https://codereview.chromium.org/2771893002 Cr-Commit-Position: refs/heads/master@{#461038} Committed: https://chromium.googlesource.com/chromium/src/+/63c7ac485b91957bd4fb2a1ff743cbf43f526717

Patch Set 1 : move Bluetooth.Web.FunctionCall.Count UMA from browser to WebKit #

Total comments: 5

Patch Set 2 : address comments #

Patch Set 3 : use blink MeasureAs for WebBluetooth UMA and remove the old manual UMA #

Patch Set 4 : rebase #

Total comments: 2

Patch Set 5 : address ortuno@'s comments #

Patch Set 6 : updated idl files #

Total comments: 2

Patch Set 7 : address more comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -74 lines) Patch
M content/browser/bluetooth/bluetooth_metrics.h View 1 chunk +0 lines, -26 lines 0 comments Download
M content/browser/bluetooth/bluetooth_metrics.cc View 1 chunk +0 lines, -6 lines 0 comments Download
M content/browser/bluetooth/web_bluetooth_service_impl.cc View 1 12 chunks +0 lines, -28 lines 0 comments Download
M third_party/WebKit/Source/core/frame/UseCounter.h View 1 2 3 4 5 6 1 chunk +14 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.idl View 1 2 3 4 5 1 chunk +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTDescriptor.idl View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTServer.idl View 1 2 3 4 5 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTService.idl View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 2 chunks +18 lines, -0 lines 0 comments Download

Messages

Total messages: 61 (37 generated)
juncai
Please take a look.
3 years, 9 months ago (2017-03-23 20:10:06 UTC) #6
haraken
https://codereview.chromium.org/2771893002/diff/1/third_party/WebKit/Source/modules/bluetooth/BluetoothMetrics.h File third_party/WebKit/Source/modules/bluetooth/BluetoothMetrics.h (right): https://codereview.chromium.org/2771893002/diff/1/third_party/WebKit/Source/modules/bluetooth/BluetoothMetrics.h#newcode34 third_party/WebKit/Source/modules/bluetooth/BluetoothMetrics.h:34: void RecordWebBluetoothFunctionCall(UMAWebBluetoothFunction); Nit: We normally create a static class. ...
3 years, 9 months ago (2017-03-23 23:36:34 UTC) #8
ortuno
https://codereview.chromium.org/2771893002/diff/1/third_party/WebKit/Source/modules/bluetooth/DEPS File third_party/WebKit/Source/modules/bluetooth/DEPS (right): https://codereview.chromium.org/2771893002/diff/1/third_party/WebKit/Source/modules/bluetooth/DEPS#newcode2 third_party/WebKit/Source/modules/bluetooth/DEPS:2: "+base/metrics/histogram_macros.h", I'm surprised we are allowed to add this. ...
3 years, 9 months ago (2017-03-24 05:48:04 UTC) #10
scheib
We should probably use the IDL annotation [MeasureAs=Bluetooth________] https://chromium.googlesource.com/chromium/src/+/master/third_party/WebKit/Source/bindings/IDLExtendedAttributes.md#MeasureAs_i_m_a_c And then remove the old manual ...
3 years, 9 months ago (2017-03-24 19:53:31 UTC) #11
juncai
On 2017/03/24 19:53:31, scheib wrote: > We should probably use the IDL annotation [MeasureAs=Bluetooth________] > ...
3 years, 8 months ago (2017-03-27 19:08:38 UTC) #15
juncai
https://codereview.chromium.org/2771893002/diff/1/third_party/WebKit/Source/modules/bluetooth/BluetoothMetrics.h File third_party/WebKit/Source/modules/bluetooth/BluetoothMetrics.h (right): https://codereview.chromium.org/2771893002/diff/1/third_party/WebKit/Source/modules/bluetooth/BluetoothMetrics.h#newcode34 third_party/WebKit/Source/modules/bluetooth/BluetoothMetrics.h:34: void RecordWebBluetoothFunctionCall(UMAWebBluetoothFunction); On 2017/03/23 23:36:34, haraken wrote: > > ...
3 years, 8 months ago (2017-03-27 19:08:57 UTC) #16
scheib
On 2017/03/27 19:08:38, juncai wrote: > On 2017/03/24 19:53:31, scheib wrote: > > We should ...
3 years, 8 months ago (2017-03-27 21:51:29 UTC) #17
juncai
On 2017/03/27 21:51:29, scheib wrote: > I suggest a clean break from one to the ...
3 years, 8 months ago (2017-03-27 23:15:42 UTC) #26
scheib
lgtm
3 years, 8 months ago (2017-03-28 03:44:28 UTC) #29
ortuno
UseCounter is used to track feature usage per page whereas the custom histograms track how ...
3 years, 8 months ago (2017-03-28 09:10:12 UTC) #30
juncai
On 2017/03/28 09:10:12, ortuno wrote: > UseCounter is used to track feature usage per page ...
3 years, 8 months ago (2017-03-29 18:00:46 UTC) #31
scheib
On 2017/03/29 18:00:46, juncai wrote: > On 2017/03/28 09:10:12, ortuno wrote: > > UseCounter is ...
3 years, 8 months ago (2017-03-29 19:23:50 UTC) #32
juncai
dcheng@chromium.org: please review changes in //third_party/WebKit/Source/core/frame/UseCounter.h haraken@chromium.org: please review changes in //tools/metrics/histograms/histograms.xml
3 years, 8 months ago (2017-03-29 21:23:13 UTC) #34
ortuno
Also please mark the old histograms as obsolete. https://codereview.chromium.org/2771893002/diff/60001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2771893002/diff/60001/tools/metrics/histograms/histograms.xml#newcode94183 tools/metrics/histograms/histograms.xml:94183: + ...
3 years, 8 months ago (2017-03-29 21:44:16 UTC) #35
dcheng
rs lgtm for UseCounter changes.
3 years, 8 months ago (2017-03-29 21:48:51 UTC) #36
juncai
Also marked the old histograms as obsolete in the histograms.xml. https://codereview.chromium.org/2771893002/diff/60001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2771893002/diff/60001/tools/metrics/histograms/histograms.xml#newcode94183 ...
3 years, 8 months ago (2017-03-29 22:14:48 UTC) #39
ortuno
Don't we need to change the values in the idls as well?
3 years, 8 months ago (2017-03-29 22:19:07 UTC) #40
juncai
On 2017/03/29 22:19:07, ortuno wrote: > Don't we need to change the values in the ...
3 years, 8 months ago (2017-03-29 22:20:25 UTC) #41
juncai
ping haraken@, :). Please review changes in //tools/metrics/histograms/histograms.xml
3 years, 8 months ago (2017-03-30 18:36:27 UTC) #48
scheib
https://codereview.chromium.org/2771893002/diff/100001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2771893002/diff/100001/tools/metrics/histograms/histograms.xml#newcode5638 tools/metrics/histograms/histograms.xml:5638: + Deprecated as of 3/2017. Replaced by using blink ...
3 years, 8 months ago (2017-03-30 22:44:01 UTC) #49
haraken
LGTM
3 years, 8 months ago (2017-03-31 00:00:03 UTC) #50
juncai
https://codereview.chromium.org/2771893002/diff/100001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2771893002/diff/100001/tools/metrics/histograms/histograms.xml#newcode5638 tools/metrics/histograms/histograms.xml:5638: + Deprecated as of 3/2017. Replaced by using blink ...
3 years, 8 months ago (2017-03-31 03:19:08 UTC) #55
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/2771893002/120001
3 years, 8 months ago (2017-03-31 03:19:40 UTC) #58
commit-bot: I haz the power
3 years, 8 months ago (2017-03-31 04:53:48 UTC) #61
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/63c7ac485b91957bd4fb2a1ff743...

Powered by Google App Engine
This is Rietveld 408576698