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

Issue 2865463003: Tracks GVR version crossed with headset type using UMA. (Closed)

Created:
3 years, 7 months ago by tiborg
Modified:
3 years, 6 months ago
CC:
chromium-reviews, feature-vr-reviews_chromium.org, asvitkine+watch_chromium.org, agrieve+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Track GVR version for each headset type using UMA. - A data point is only collected at most once between Chrome restarts. - The data point is either collected once the user navigates to a page that uses WebVR API or enters VrShell. - The GVR version is retrieved from Java and uploaded in native. By doing so, we can also track if older, non-supported versions of GVR were installed at the time the user tried to use a VR feature. - The GVR version is encoded as (major * 10^6 + minor * 10^3 + patch) and reported as a UMA_HISTOGRAM_SPARSE_SLOWLY for the headset types CARDBOARD, DAYDREAM and UNKNOWN. BUG=706436 Review-Url: https://codereview.chromium.org/2865463003 Cr-Original-Commit-Position: refs/heads/master@{#476705} Committed: https://chromium.googlesource.com/chromium/src/+/92c0c2fb929a969c0ca9b7626e302360ece09f83 Review-Url: https://codereview.chromium.org/2865463003 Cr-Commit-Position: refs/heads/master@{#477308} Committed: https://chromium.googlesource.com/chromium/src/+/7c35bee6935777ecc39bc419325703fb391d0159

Patch Set 1 #

Total comments: 25

Patch Set 2 : Rebased on ToT, changed logging to UMA_HISTOGRAM_SPARSE_SLOWLY #

Total comments: 34

Patch Set 3 : Incorporated review feedback #

Total comments: 1

Patch Set 4 : Nit: only create native-Java enum if enable_vr is set #

Total comments: 22

Patch Set 5 : Incorporated review feedback #

Total comments: 3

Patch Set 6 : Nit: moved fallthrough comment out of else-block #

Total comments: 10

Patch Set 7 : Incorporated review feedback #

Patch Set 8 : Removed we from comment #

Patch Set 9 : Added multilevel suffixing #

Patch Set 10 : Rebased #

Patch Set 11 : Renamed gvr_version to gvr_sdk_version #

Patch Set 12 : Fixed tests #

Patch Set 13 : Compiles with enable_vr=false. #

Patch Set 14 : Fixed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+354 lines, -78 lines) Patch
M chrome/android/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +7 lines, -0 lines 0 comments Download
A chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrCoreInfo.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +44 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrCoreVersionChecker.java View 1 2 1 chunk +3 lines, -16 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrCoreVersionCheckerImpl.java View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +9 lines, -7 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java View 1 2 3 4 5 6 7 8 9 3 chunks +12 lines, -6 lines 0 comments Download
M chrome/android/java_sources.gni View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/vr_shell/MockVrCoreVersionCheckerImpl.java View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +6 lines, -7 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/vr_shell/WebVrTest.java View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +16 lines, -15 lines 0 comments Download
M chrome/browser/android/chrome_jni_registrar.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/BUILD.gn View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -0 lines 0 comments Download
A chrome/browser/android/vr_shell/vr_core_info.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +38 lines, -0 lines 0 comments Download
A chrome/browser/android/vr_shell/vr_core_info.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +40 lines, -0 lines 0 comments Download
A chrome/browser/android/vr_shell/vr_metrics_util.h View 1 2 3 4 1 chunk +39 lines, -0 lines 0 comments Download
A chrome/browser/android/vr_shell/vr_metrics_util.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +88 lines, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_shell_delegate.h View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_shell_delegate.cc View 1 2 3 4 5 6 7 8 9 7 chunks +14 lines, -3 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_shell_gl.cc View 1 2 3 4 5 6 7 8 9 3 chunks +5 lines, -22 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 2 chunks +21 lines, -0 lines 0 comments Download

Messages

Total messages: 74 (31 generated)
tiborg
Hi Bill, Can you please take a look at this UMA tracking. Thanks! Cheers, Tibor
3 years, 7 months ago (2017-05-04 22:15:07 UTC) #2
billorr
https://codereview.chromium.org/2865463003/diff/1/chrome/browser/android/vr_shell/vr_shell_gl.cc File chrome/browser/android/vr_shell/vr_shell_gl.cc (right): https://codereview.chromium.org/2865463003/diff/1/chrome/browser/android/vr_shell/vr_shell_gl.cc#newcode409 chrome/browser/android/vr_shell/vr_shell_gl.cc:409: VrMetricsHelper::LogVrViewerType(gvr_api); VrMetricsHelper doesn't need to be the only thing ...
3 years, 7 months ago (2017-05-05 17:48:41 UTC) #3
tiborg
https://codereview.chromium.org/2865463003/diff/1/chrome/browser/android/vr_shell/vr_shell_gl.cc File chrome/browser/android/vr_shell/vr_shell_gl.cc (right): https://codereview.chromium.org/2865463003/diff/1/chrome/browser/android/vr_shell/vr_shell_gl.cc#newcode409 chrome/browser/android/vr_shell/vr_shell_gl.cc:409: VrMetricsHelper::LogVrViewerType(gvr_api); On 2017/05/05 17:48:40, billorr wrote: > VrMetricsHelper doesn't ...
3 years, 7 months ago (2017-05-05 19:03:35 UTC) #4
billorr
https://codereview.chromium.org/2865463003/diff/1/chrome/browser/android/vr_shell/vr_usage_monitor.h File chrome/browser/android/vr_shell/vr_usage_monitor.h (right): https://codereview.chromium.org/2865463003/diff/1/chrome/browser/android/vr_shell/vr_usage_monitor.h#newcode15 chrome/browser/android/vr_shell/vr_usage_monitor.h:15: #include "third_party/gvr-android-sdk/src/libraries/headers/vr/gvr/capi/include/gvr.h" On 2017/05/05 19:03:34, tiborg wrote: > On ...
3 years, 7 months ago (2017-05-05 20:10:21 UTC) #5
ddorwin
+amp who wrote some of this code https://codereview.chromium.org/2865463003/diff/1/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrCoreVersionCheckerImpl.java File chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrCoreVersionCheckerImpl.java (right): https://codereview.chromium.org/2865463003/diff/1/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrCoreVersionCheckerImpl.java#newcode34 chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrCoreVersionCheckerImpl.java:34: return new ...
3 years, 7 months ago (2017-05-05 20:29:59 UTC) #7
amp
https://codereview.chromium.org/2865463003/diff/1/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrCoreVersionCheckerImpl.java File chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrCoreVersionCheckerImpl.java (right): https://codereview.chromium.org/2865463003/diff/1/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrCoreVersionCheckerImpl.java#newcode34 chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrCoreVersionCheckerImpl.java:34: return new VrCoreInfo(null, VrCoreVersionChecker.VR_NOT_SUPPORTED); On 2017/05/05 20:29:59, ddorwin wrote: ...
3 years, 7 months ago (2017-05-05 23:51:55 UTC) #8
tiborg
https://codereview.chromium.org/2865463003/diff/1/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java File chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java (right): https://codereview.chromium.org/2865463003/diff/1/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java#newcode735 chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java:735: int vrCoreCompatibility = versionChecker.getVrCoreInfo().compatibility; On 2017/05/05 20:29:59, ddorwin wrote: ...
3 years, 7 months ago (2017-05-10 20:39:52 UTC) #9
billorr1
lgtm
3 years, 7 months ago (2017-05-10 21:01:59 UTC) #11
amp
lgtm, one optional follow up comment https://codereview.chromium.org/2865463003/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrCoreVersionCheckerImpl.java File chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrCoreVersionCheckerImpl.java (right): https://codereview.chromium.org/2865463003/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrCoreVersionCheckerImpl.java#newcode55 chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrCoreVersionCheckerImpl.java:55: return new VrCoreInfo(null, ...
3 years, 7 months ago (2017-05-15 23:28:54 UTC) #13
ddorwin
mthiesse, there is a question for you. https://codereview.chromium.org/2865463003/diff/1/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrCoreVersionCheckerImpl.java File chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrCoreVersionCheckerImpl.java (right): https://codereview.chromium.org/2865463003/diff/1/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrCoreVersionCheckerImpl.java#newcode34 chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrCoreVersionCheckerImpl.java:34: return new ...
3 years, 7 months ago (2017-05-16 00:15:51 UTC) #15
mthiesse
https://codereview.chromium.org/2865463003/diff/1/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrCoreVersionCheckerImpl.java File chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrCoreVersionCheckerImpl.java (right): https://codereview.chromium.org/2865463003/diff/1/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrCoreVersionCheckerImpl.java#newcode34 chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrCoreVersionCheckerImpl.java:34: return new VrCoreInfo(null, VrCoreVersionChecker.VR_NOT_SUPPORTED); One of the bizarre quirks ...
3 years, 7 months ago (2017-05-16 00:53:41 UTC) #16
mthiesse
https://codereview.chromium.org/2865463003/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrCoreInfo.java File chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrCoreInfo.java (right): https://codereview.chromium.org/2865463003/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrCoreInfo.java#newcode17 chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrCoreInfo.java:17: public VrCoreInfo(Version version, int compatibility) { If you want ...
3 years, 7 months ago (2017-05-16 01:15:13 UTC) #17
tiborg
https://codereview.chromium.org/2865463003/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrCoreInfo.java File chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrCoreInfo.java (right): https://codereview.chromium.org/2865463003/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrCoreInfo.java#newcode17 chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrCoreInfo.java:17: public VrCoreInfo(Version version, int compatibility) { On 2017/05/16 01:15:12, ...
3 years, 7 months ago (2017-05-23 15:47:26 UTC) #18
mthiesse
https://codereview.chromium.org/2865463003/diff/60001/chrome/browser/android/vr_shell/vr_shell_delegate.cc File chrome/browser/android/vr_shell/vr_shell_delegate.cc (right): https://codereview.chromium.org/2865463003/diff/60001/chrome/browser/android/vr_shell/vr_shell_delegate.cc#newcode79 chrome/browser/android/vr_shell/vr_shell_delegate.cc:79: auto vr_core_info = MakeVrCoreInfo(env); nit: Only use auto when ...
3 years, 7 months ago (2017-05-24 05:47:26 UTC) #19
ddorwin
Thank you. https://codereview.chromium.org/2865463003/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrCoreInfo.java File chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrCoreInfo.java (right): https://codereview.chromium.org/2865463003/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrCoreInfo.java#newcode14 chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrCoreInfo.java:14: public final Version gvrVersion; nit: Since this ...
3 years, 7 months ago (2017-05-24 07:31:38 UTC) #20
tiborg
https://codereview.chromium.org/2865463003/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrCoreInfo.java File chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrCoreInfo.java (right): https://codereview.chromium.org/2865463003/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrCoreInfo.java#newcode14 chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrCoreInfo.java:14: public final Version gvrVersion; On 2017/05/24 07:31:37, ddorwin wrote: ...
3 years, 6 months ago (2017-05-25 00:06:03 UTC) #21
mthiesse
lgtm!
3 years, 6 months ago (2017-05-25 04:38:39 UTC) #22
ddorwin
rkaplow: Please review histograms and see my comments there. LGTM with two comments. https://codereview.chromium.org/2865463003/diff/80001/chrome/browser/android/vr_shell/vr_metrics_util.cc File ...
3 years, 6 months ago (2017-05-25 05:14:12 UTC) #24
tiborg
https://codereview.chromium.org/2865463003/diff/80001/chrome/browser/android/vr_shell/vr_metrics_util.cc File chrome/browser/android/vr_shell/vr_metrics_util.cc (right): https://codereview.chromium.org/2865463003/diff/80001/chrome/browser/android/vr_shell/vr_metrics_util.cc#newcode54 chrome/browser/android/vr_shell/vr_metrics_util.cc:54: } else { On 2017/05/25 05:14:12, ddorwin wrote: > ...
3 years, 6 months ago (2017-05-25 14:50:35 UTC) #25
ddorwin
Thanks. https://codereview.chromium.org/2865463003/diff/100001/chrome/browser/android/vr_shell/vr_metrics_util.cc File chrome/browser/android/vr_shell/vr_metrics_util.cc (right): https://codereview.chromium.org/2865463003/diff/100001/chrome/browser/android/vr_shell/vr_metrics_util.cc#newcode55 chrome/browser/android/vr_shell/vr_metrics_util.cc:55: // We fall through to We generally avoid ...
3 years, 6 months ago (2017-05-25 16:42:26 UTC) #26
rkaplow
On 2017/05/25 05:14:12, ddorwin wrote: > rkaplow: Please review histograms and see my comments there. ...
3 years, 6 months ago (2017-05-25 20:57:19 UTC) #27
rkaplow
https://codereview.chromium.org/2865463003/diff/100001/chrome/browser/android/vr_shell/vr_metrics_util.cc File chrome/browser/android/vr_shell/vr_metrics_util.cc (right): https://codereview.chromium.org/2865463003/diff/100001/chrome/browser/android/vr_shell/vr_metrics_util.cc#newcode66 chrome/browser/android/vr_shell/vr_metrics_util.cc:66: UMA_HISTOGRAM_SPARSE_SLOWLY(histogram_name.c_str(), encoded_version); since this is using macros this should ...
3 years, 6 months ago (2017-05-25 20:57:27 UTC) #28
tiborg
On 2017/05/25 20:57:19, rkaplow wrote: > On 2017/05/25 05:14:12, ddorwin wrote: > > rkaplow: Please ...
3 years, 6 months ago (2017-05-25 21:25:54 UTC) #29
tiborg
Thank you for the review! https://codereview.chromium.org/2865463003/diff/100001/chrome/browser/android/vr_shell/vr_metrics_util.cc File chrome/browser/android/vr_shell/vr_metrics_util.cc (right): https://codereview.chromium.org/2865463003/diff/100001/chrome/browser/android/vr_shell/vr_metrics_util.cc#newcode55 chrome/browser/android/vr_shell/vr_metrics_util.cc:55: // We fall through ...
3 years, 6 months ago (2017-05-25 21:41:42 UTC) #30
ddorwin
On 2017/05/25 20:57:19, rkaplow wrote: > On 2017/05/25 05:14:12, ddorwin wrote: > > rkaplow: Please ...
3 years, 6 months ago (2017-05-26 02:52:34 UTC) #31
rkaplow
lgtm the suffix schema you mentioned if you need to do multi-level suffixing looks right
3 years, 6 months ago (2017-05-30 15:06:38 UTC) #32
ddorwin
lgtm
3 years, 6 months ago (2017-05-30 20:03:22 UTC) #33
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/2865463003/160001
3 years, 6 months ago (2017-05-30 21:14:14 UTC) #36
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/226573) mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 6 months ago (2017-05-30 21:17:24 UTC) #38
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/2865463003/180001
3 years, 6 months ago (2017-05-31 18:49:16 UTC) #41
commit-bot: I haz the power
Try jobs failed on following builders: android_compile_dbg on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_compile_dbg/builds/281323) linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, ...
3 years, 6 months ago (2017-05-31 19:59:34 UTC) #43
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/2865463003/200001
3 years, 6 months ago (2017-06-01 15:26:13 UTC) #46
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/453288)
3 years, 6 months ago (2017-06-01 15:36:07 UTC) #48
tiborg
tedchoc@chromium.org: Please review changes in chrome/android/BUILD.gn chrome/browser/android/chrome_jni_registrar.cc Hi Ted, Would you mind taking a look ...
3 years, 6 months ago (2017-06-01 15:55:21 UTC) #50
Ted C
On 2017/06/01 15:55:21, tiborg wrote: > mailto:tedchoc@chromium.org: Please review changes in > chrome/android/BUILD.gn > chrome/browser/android/chrome_jni_registrar.cc ...
3 years, 6 months ago (2017-06-01 18:36:07 UTC) #51
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/2865463003/200001
3 years, 6 months ago (2017-06-01 20:31:06 UTC) #53
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_clang_dbg_recipe/builds/281816)
3 years, 6 months ago (2017-06-01 21:14:48 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/2865463003/220001
3 years, 6 months ago (2017-06-02 16:03:26 UTC) #58
commit-bot: I haz the power
Committed patchset #12 (id:220001) as https://chromium.googlesource.com/chromium/src/+/92c0c2fb929a969c0ca9b7626e302360ece09f83
3 years, 6 months ago (2017-06-02 17:29:28 UTC) #61
michaelbai
On 2017/06/02 17:29:28, commit-bot: I haz the power wrote: > Committed patchset #12 (id:220001) as ...
3 years, 6 months ago (2017-06-02 17:49:14 UTC) #62
mthiesse
lgtm
3 years, 6 months ago (2017-06-06 15:12:11 UTC) #68
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/2865463003/260001
3 years, 6 months ago (2017-06-06 15:13:05 UTC) #71
commit-bot: I haz the power
3 years, 6 months ago (2017-06-06 16:27:22 UTC) #74
Message was sent while issue was closed.
Committed patchset #14 (id:260001) as
https://chromium.googlesource.com/chromium/src/+/7c35bee6935777ecc39bc4193257...

Powered by Google App Engine
This is Rietveld 408576698