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

Issue 53283003: Added UMA stat for tracking accidental navigations on double tap. (Closed)

Created:
7 years, 1 month ago by bokan
Modified:
7 years, 1 month ago
CC:
chromium-reviews, jar (doing other things), jam, joi+watch-content_chromium.org, darin-cc_chromium.org, asvitkine+watch_chromium.org, Ilya Sherman, aelias_OOO_until_Jul13
Visibility:
Public.

Description

Added UMA stat for tracking accidental navigations on double tap. Adding UMA stat to see the effect of the --disable-click-delay flag on accidental navigations caused by double tap. Added two UMA enum histograms, one for when click delays are enabled and one for disabled. The stats track the first user action within 5 seconds of a double tap gesture. The three possibilities are "navigate back", "stop navigation", and "no action". No action means we didn't navigate back or stop load within the 5 seconds. Note, this only tracks navigations within the same ContentView, if a navigation opens a new tab, the back/stop for those wont be recorded. However, in practice this shouldn't make a big difference. BUG=312735 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=233676

Patch Set 1 #

Total comments: 14

Patch Set 2 : #

Patch Set 3 : #

Total comments: 13

Patch Set 4 : #

Total comments: 9

Patch Set 5 : #

Total comments: 28

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Total comments: 1

Patch Set 9 : #

Patch Set 10 : Made nested classes static #

Total comments: 39

Patch Set 11 : #

Total comments: 1

Patch Set 12 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+218 lines, -2 lines) Patch
M content/browser/android/content_view_core_impl.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +6 lines, -0 lines 0 comments Download
M content/browser/android/content_view_core_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +26 lines, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +44 lines, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ContentViewGestureHandler.java View 1 2 3 4 5 6 7 8 9 10 11 8 chunks +82 lines, -2 lines 0 comments Download
M content/public/android/javatests/src/org/chromium/content/browser/ContentViewGestureHandlerTest.java View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +22 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 3 chunks +38 lines, -0 lines 0 comments Download

Messages

Total messages: 34 (0 generated)
bokan
I've added the UMA stats as I think the bug describes them. I've played with ...
7 years, 1 month ago (2013-10-30 21:26:57 UTC) #1
jdduke (slow)
Just curious, what kind of threshold are we looking for to deem the accidental navigation ...
7 years, 1 month ago (2013-10-30 21:38:04 UTC) #2
bokan
On 2013/10/30 21:38:04, jdduke wrote: > Just curious, what kind of threshold are we looking ...
7 years, 1 month ago (2013-10-30 21:45:03 UTC) #3
jdduke (slow)
On 2013/10/30 21:45:03, bokan wrote: > On 2013/10/30 21:38:04, jdduke wrote: > > Just curious, ...
7 years, 1 month ago (2013-10-30 21:47:37 UTC) #4
Rick Byers
On 2013/10/30 21:47:37, jdduke wrote: > On 2013/10/30 21:45:03, bokan wrote: > > On 2013/10/30 ...
7 years, 1 month ago (2013-10-31 16:58:52 UTC) #5
bokan
On 2013/10/31 16:58:52, Rick Byers wrote: > On 2013/10/30 21:47:37, jdduke wrote: > > On ...
7 years, 1 month ago (2013-10-31 17:07:21 UTC) #6
jdduke (slow)
On 2013/10/31 17:07:21, bokan wrote: > On 2013/10/31 16:58:52, Rick Byers wrote: > > On ...
7 years, 1 month ago (2013-10-31 17:11:13 UTC) #7
Rick Byers
On 2013/10/31 17:11:13, jdduke wrote: > On 2013/10/31 17:07:21, bokan wrote: > > On 2013/10/31 ...
7 years, 1 month ago (2013-10-31 17:22:34 UTC) #8
Rick Byers
Looks good, just a few suggestions. https://codereview.chromium.org/53283003/diff/1/chrome/android/java/src/org/chromium/chrome/browser/TabBase.java File chrome/android/java/src/org/chromium/chrome/browser/TabBase.java (right): https://codereview.chromium.org/53283003/diff/1/chrome/android/java/src/org/chromium/chrome/browser/TabBase.java#newcode225 chrome/android/java/src/org/chromium/chrome/browser/TabBase.java:225: mContentViewCore.updateActionAfterDoubleTapUMA( since this ...
7 years, 1 month ago (2013-10-31 17:53:09 UTC) #9
bokan
Addressed all of Rick's feedback. I made the "Action Reporting" more generic and moved it ...
7 years, 1 month ago (2013-10-31 22:31:58 UTC) #10
Rick Byers
Thanks David! A few more things to discuss... https://codereview.chromium.org/53283003/diff/180001/content/browser/android/content_view_core_impl.cc File content/browser/android/content_view_core_impl.cc (right): https://codereview.chromium.org/53283003/diff/180001/content/browser/android/content_view_core_impl.cc#newcode1627 content/browser/android/content_view_core_impl.cc:1627: content::RecordAction(content::UserMetricsAction("DelayedGestureTap")); ...
7 years, 1 month ago (2013-11-01 14:45:08 UTC) #11
bokan
https://codereview.chromium.org/53283003/diff/180001/content/browser/android/content_view_core_impl.cc File content/browser/android/content_view_core_impl.cc (right): https://codereview.chromium.org/53283003/diff/180001/content/browser/android/content_view_core_impl.cc#newcode1627 content/browser/android/content_view_core_impl.cc:1627: content::RecordAction(content::UserMetricsAction("DelayedGestureTap")); On 2013/11/01 14:45:09, Rick Byers wrote: > This ...
7 years, 1 month ago (2013-11-01 18:52:43 UTC) #12
Rick Byers
Thanks, LGTM with nits! https://codereview.chromium.org/53283003/diff/260001/content/browser/android/content_view_core_impl.cc File content/browser/android/content_view_core_impl.cc (right): https://codereview.chromium.org/53283003/diff/260001/content/browser/android/content_view_core_impl.cc#newcode1629 content/browser/android/content_view_core_impl.cc:1629: UMA_HISTOGRAM_ENUMERATION("UserInput.SingleTapType", Nit: rather than create ...
7 years, 1 month ago (2013-11-01 19:27:02 UTC) #13
bokan
Adding bulach@ and jar@ for OWNERS https://codereview.chromium.org/53283003/diff/260001/content/browser/android/content_view_core_impl.cc File content/browser/android/content_view_core_impl.cc (right): https://codereview.chromium.org/53283003/diff/260001/content/browser/android/content_view_core_impl.cc#newcode1629 content/browser/android/content_view_core_impl.cc:1629: UMA_HISTOGRAM_ENUMERATION("UserInput.SingleTapType", On 2013/11/01 ...
7 years, 1 month ago (2013-11-01 19:54:01 UTC) #14
Rick Byers
https://codereview.chromium.org/53283003/diff/260001/content/browser/android/content_view_core_impl.cc File content/browser/android/content_view_core_impl.cc (right): https://codereview.chromium.org/53283003/diff/260001/content/browser/android/content_view_core_impl.cc#newcode1629 content/browser/android/content_view_core_impl.cc:1629: UMA_HISTOGRAM_ENUMERATION("UserInput.SingleTapType", On 2013/11/01 19:54:02, bokan wrote: > On 2013/11/01 ...
7 years, 1 month ago (2013-11-01 20:03:26 UTC) #15
jdduke (slow)
https://codereview.chromium.org/53283003/diff/330001/content/public/android/java/src/org/chromium/content/browser/ContentViewGestureHandler.java File content/public/android/java/src/org/chromium/content/browser/ContentViewGestureHandler.java (right): https://codereview.chromium.org/53283003/diff/330001/content/public/android/java/src/org/chromium/content/browser/ContentViewGestureHandler.java#newcode551 content/public/android/java/src/org/chromium/content/browser/ContentViewGestureHandler.java:551: isDoubleTapDisabled() || mDisableClickDelay ? I'm not sure it makes ...
7 years, 1 month ago (2013-11-01 20:17:45 UTC) #16
jar (doing other things)
+cc Alexei for histograms.xml review
7 years, 1 month ago (2013-11-01 23:36:56 UTC) #17
Alexei Svitkine (slow)
https://codereview.chromium.org/53283003/diff/330001/content/browser/android/content_view_core_impl.cc File content/browser/android/content_view_core_impl.cc (right): https://codereview.chromium.org/53283003/diff/330001/content/browser/android/content_view_core_impl.cc#newcode1625 content/browser/android/content_view_core_impl.cc:1625: JNIEnv* env, Nit: move this to the line above ...
7 years, 1 month ago (2013-11-02 00:12:39 UTC) #18
Alexei Svitkine (slow)
7 years, 1 month ago (2013-11-02 00:12:45 UTC) #19
Alexei Svitkine (slow)
https://codereview.chromium.org/53283003/diff/330001/content/browser/android/content_view_core_impl.cc File content/browser/android/content_view_core_impl.cc (right): https://codereview.chromium.org/53283003/diff/330001/content/browser/android/content_view_core_impl.cc#newcode1625 content/browser/android/content_view_core_impl.cc:1625: JNIEnv* env, On 2013/11/02 00:12:39, Alexei Svitkine wrote: > ...
7 years, 1 month ago (2013-11-02 00:15:04 UTC) #20
Alexei Svitkine (slow)
7 years, 1 month ago (2013-11-02 00:15:18 UTC) #21
Alexei Svitkine (slow)
(Sorry for the spam, rietveld gave me some errors when sending comments...)
7 years, 1 month ago (2013-11-02 00:15:51 UTC) #22
WRONG-USE-chromium
https://codereview.chromium.org/53283003/diff/330001/content/public/android/java/src/org/chromium/content/browser/ContentViewGestureHandler.java File content/public/android/java/src/org/chromium/content/browser/ContentViewGestureHandler.java (right): https://codereview.chromium.org/53283003/diff/330001/content/public/android/java/src/org/chromium/content/browser/ContentViewGestureHandler.java#newcode551 content/public/android/java/src/org/chromium/content/browser/ContentViewGestureHandler.java:551: isDoubleTapDisabled() || mDisableClickDelay ? On 2013/11/01 20:17:46, jdduke wrote: ...
7 years, 1 month ago (2013-11-02 12:58:44 UTC) #23
bulach
drive-by: https://codereview.chromium.org/53283003/diff/330001/content/browser/android/content_view_core_impl.h File content/browser/android/content_view_core_impl.h (right): https://codereview.chromium.org/53283003/diff/330001/content/browser/android/content_view_core_impl.h#newcode227 content/browser/android/content_view_core_impl.h:227: int type, jint rather than int https://codereview.chromium.org/53283003/diff/330001/content/browser/android/content_view_core_impl.h#newcode228 content/browser/android/content_view_core_impl.h:228: ...
7 years, 1 month ago (2013-11-04 18:22:30 UTC) #24
Rick Byers
https://codereview.chromium.org/53283003/diff/330001/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java File content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java (right): https://codereview.chromium.org/53283003/diff/330001/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java#newcode462 content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java:462: public enum UMAActionAfterDoubleTap { On 2013/11/04 18:22:31, bulach wrote: ...
7 years, 1 month ago (2013-11-04 18:34:40 UTC) #25
bokan
Thanks for feedback all, ptal. https://codereview.chromium.org/53283003/diff/330001/content/browser/android/content_view_core_impl.cc File content/browser/android/content_view_core_impl.cc (right): https://codereview.chromium.org/53283003/diff/330001/content/browser/android/content_view_core_impl.cc#newcode1625 content/browser/android/content_view_core_impl.cc:1625: JNIEnv* env, On 2013/11/02 ...
7 years, 1 month ago (2013-11-04 20:01:07 UTC) #26
bokan
asvitkine@: ptal at histograms.xml bulach@: ptal at the rest Thanks
7 years, 1 month ago (2013-11-05 22:09:33 UTC) #27
Alexei Svitkine (slow)
LGTM with a nit https://codereview.chromium.org/53283003/diff/570001/content/browser/android/content_view_core_impl.cc File content/browser/android/content_view_core_impl.cc (right): https://codereview.chromium.org/53283003/diff/570001/content/browser/android/content_view_core_impl.cc#newcode1642 content/browser/android/content_view_core_impl.cc:1642: count); Nit: Align |count|, here ...
7 years, 1 month ago (2013-11-05 22:18:16 UTC) #28
bokan
+tedchoc@ for OWNER in */android
7 years, 1 month ago (2013-11-06 19:23:07 UTC) #29
Ted C
Mainly styling java nits, but the main question I have is about the method placements ...
7 years, 1 month ago (2013-11-07 04:26:07 UTC) #30
bokan
Thanks for the feedback, I've addressed all your comments. (Sorry about the style, first CL ...
7 years, 1 month ago (2013-11-07 06:26:40 UTC) #31
Ted C
lgtm https://codereview.chromium.org/53283003/diff/810001/content/public/android/java/src/org/chromium/content/browser/ContentViewGestureHandler.java File content/public/android/java/src/org/chromium/content/browser/ContentViewGestureHandler.java (right): https://codereview.chromium.org/53283003/diff/810001/content/public/android/java/src/org/chromium/content/browser/ContentViewGestureHandler.java#newcode1323 content/public/android/java/src/org/chromium/content/browser/ContentViewGestureHandler.java:1323: defined in ContentViewCore. need a * at the ...
7 years, 1 month ago (2013-11-07 15:06:42 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bokan@chromium.org/53283003/900001
7 years, 1 month ago (2013-11-07 15:44:21 UTC) #33
commit-bot: I haz the power
7 years, 1 month ago (2013-11-07 20:33:58 UTC) #34
Message was sent while issue was closed.
Change committed as 233676

Powered by Google App Engine
This is Rietveld 408576698