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

Issue 2082463002: Measure the usage of navigator.vibrate in for user gesture & subframe. (Closed)

Created:
4 years, 6 months ago by Bin Lu
Modified:
4 years, 5 months ago
CC:
asvitkine+watch_chromium.org, blink-reviews, chromium-reviews, haraken, mlamouri+watch-blink_chromium.org, mvanouwerkerk+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Measure detailed usage of navigator.vibrate for user gesture, subframe & cross-origin iframe. BUG=621397 R=ojan@chromium.org,japhet@chromium.org Committed: https://crrev.com/318a9ac4bee905bae95b33a67f75a3e4a5214116 Cr-Commit-Position: refs/heads/master@{#402601}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Record more detailed usage of vibrate for user gesture, subframe and cross-origin subframe. Also removing the old metrics. #

Total comments: 6

Patch Set 3 : Fix issues mentioned in comments. #

Total comments: 1

Patch Set 4 : Keep depcreated UserCounter metrics and suffix the labels with (obsolete). #

Total comments: 3

Patch Set 5 : Fix the issues raised in new comments. #

Patch Set 6 : Change the new function to static to fix compile failure. #

Patch Set 7 : Add back the NavigatorVibrate UserCounter in case we'd like to know the percentage of vibrate being… #

Patch Set 8 : Add back NavigatorVibrateSubFrame UserCounter since we decide to go ahead to remove vibrate from if… #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -4 lines) Patch
M third_party/WebKit/Source/modules/vibration/NavigatorVibration.h View 1 2 3 4 5 2 chunks +12 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/vibration/NavigatorVibration.cpp View 1 2 3 4 5 6 7 3 chunks +32 lines, -4 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 2 chunks +17 lines, -0 lines 0 comments Download

Messages

Total messages: 46 (19 generated)
Bin Lu
Hi Ojan and Nate, Will this work? Thanks!
4 years, 6 months ago (2016-06-20 04:55:10 UTC) #1
mlamouri (slow - plz ping)
https://codereview.chromium.org/2082463002/diff/1/third_party/WebKit/Source/modules/vibration/NavigatorVibration.cpp File third_party/WebKit/Source/modules/vibration/NavigatorVibration.cpp (right): https://codereview.chromium.org/2082463002/diff/1/third_party/WebKit/Source/modules/vibration/NavigatorVibration.cpp#newcode89 third_party/WebKit/Source/modules/vibration/NavigatorVibration.cpp:89: } Would that make sense to integrate with the ...
4 years, 6 months ago (2016-06-20 10:39:20 UTC) #3
Michael van Ouwerkerk
https://codereview.chromium.org/2082463002/diff/1/third_party/WebKit/Source/modules/vibration/NavigatorVibration.cpp File third_party/WebKit/Source/modules/vibration/NavigatorVibration.cpp (right): https://codereview.chromium.org/2082463002/diff/1/third_party/WebKit/Source/modules/vibration/NavigatorVibration.cpp#newcode86 third_party/WebKit/Source/modules/vibration/NavigatorVibration.cpp:86: if (frame->isCrossOrigin()) { Recording whether a user gesture is ...
4 years, 6 months ago (2016-06-20 13:00:01 UTC) #5
ojan
Kenji, can you help Bin: 1. Propose this at the WICG and get some draft ...
4 years, 6 months ago (2016-06-20 14:04:09 UTC) #7
mlamouri (slow - plz ping)
(someone should implement an autosave mechanism in the rietvield UI, losing comments is painful :() ...
4 years, 6 months ago (2016-06-21 13:30:08 UTC) #8
Bin Lu
Thanks all for the discussion. We did notice that malicious ads creative occasionally call navigator.vibrate ...
4 years, 6 months ago (2016-06-21 20:36:15 UTC) #9
mlamouri (slow - plz ping)
You could measure vibrations w/o user gesture but I don't think it will help much ...
4 years, 6 months ago (2016-06-22 09:11:30 UTC) #10
Bin Lu
Made changes to record more detailed usage of vibrate for user gesture, same-origin subframe and ...
4 years, 6 months ago (2016-06-25 04:35:00 UTC) #13
mlamouri (slow - plz ping)
It looks good in general. Couple of minor comments below. https://codereview.chromium.org/2082463002/diff/20001/third_party/WebKit/Source/modules/vibration/NavigatorVibration.cpp File third_party/WebKit/Source/modules/vibration/NavigatorVibration.cpp (right): https://codereview.chromium.org/2082463002/diff/20001/third_party/WebKit/Source/modules/vibration/NavigatorVibration.cpp#newcode89 ...
4 years, 5 months ago (2016-06-27 12:34:03 UTC) #14
Bin Lu
Fixed the issues. PTAL. Thanks. https://codereview.chromium.org/2082463002/diff/20001/third_party/WebKit/Source/modules/vibration/NavigatorVibration.cpp File third_party/WebKit/Source/modules/vibration/NavigatorVibration.cpp (right): https://codereview.chromium.org/2082463002/diff/20001/third_party/WebKit/Source/modules/vibration/NavigatorVibration.cpp#newcode89 third_party/WebKit/Source/modules/vibration/NavigatorVibration.cpp:89: NavigatorVibrateHistogram.count(vibrateParams); On 2016/06/27 12:34:02, ...
4 years, 5 months ago (2016-06-27 15:38:35 UTC) #15
rkaplow
lgtm https://codereview.chromium.org/2082463002/diff/40001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (left): https://codereview.chromium.org/2082463002/diff/40001/tools/metrics/histograms/histograms.xml#oldcode74788 tools/metrics/histograms/histograms.xml:74788: - <int value="850" label="NavigatorVibrate"/> can you leave, and ...
4 years, 5 months ago (2016-06-27 18:00:39 UTC) #16
Bin Lu
Done. Thanks. On 2016/06/27 18:00:39, rkaplow wrote: > lgtm > > https://codereview.chromium.org/2082463002/diff/40001/tools/metrics/histograms/histograms.xml > File tools/metrics/histograms/histograms.xml ...
4 years, 5 months ago (2016-06-27 18:45:10 UTC) #17
Michael van Ouwerkerk
https://codereview.chromium.org/2082463002/diff/60001/third_party/WebKit/Source/modules/vibration/NavigatorVibration.cpp File third_party/WebKit/Source/modules/vibration/NavigatorVibration.cpp (right): https://codereview.chromium.org/2082463002/diff/60001/third_party/WebKit/Source/modules/vibration/NavigatorVibration.cpp#newcode24 third_party/WebKit/Source/modules/vibration/NavigatorVibration.cpp:24: #include "core/frame/UseCounter.h" Delete this as it is no longer ...
4 years, 5 months ago (2016-06-28 11:45:53 UTC) #20
Bin Lu
Done. PTAL. Thanks. On 2016/06/28 11:45:53, Michael van Ouwerkerk wrote: > https://codereview.chromium.org/2082463002/diff/60001/third_party/WebKit/Source/modules/vibration/NavigatorVibration.cpp > File third_party/WebKit/Source/modules/vibration/NavigatorVibration.cpp ...
4 years, 5 months ago (2016-06-28 15:41:17 UTC) #21
Michael van Ouwerkerk
lgtm thanks
4 years, 5 months ago (2016-06-28 15:45:03 UTC) #22
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2082463002/80001
4 years, 5 months ago (2016-06-28 15:49:55 UTC) #24
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: cast_shell_android on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/cast_shell_android/builds/88300) cast_shell_linux on ...
4 years, 5 months ago (2016-06-28 16:02:47 UTC) #26
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2082463002/100001
4 years, 5 months ago (2016-06-28 16:25:54 UTC) #28
Bin Lu
Added back the NavigatorVibrate UserCounter in case we'd like to know the percentage of vibrate ...
4 years, 5 months ago (2016-06-28 17:57:59 UTC) #31
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2082463002/120001
4 years, 5 months ago (2016-06-28 17:58:02 UTC) #32
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/246849)
4 years, 5 months ago (2016-06-28 19:41:39 UTC) #34
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2082463002/140001
4 years, 5 months ago (2016-06-28 20:55:00 UTC) #36
Bin Lu
Also added back NavigatorVibrateSubFrame UserCounter since we decide to go ahead to remove vibrate from ...
4 years, 5 months ago (2016-06-28 20:56:33 UTC) #37
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 5 months ago (2016-06-28 22:27:09 UTC) #39
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/2082463002/140001
4 years, 5 months ago (2016-06-28 23:03:48 UTC) #42
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 5 months ago (2016-06-28 23:53:16 UTC) #44
commit-bot: I haz the power
4 years, 5 months ago (2016-06-28 23:55:15 UTC) #46
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/318a9ac4bee905bae95b33a67f75a3e4a5214116
Cr-Commit-Position: refs/heads/master@{#402601}

Powered by Google App Engine
This is Rietveld 408576698