Added UMA stat for tracking accidental navigations on double tap.
commit77be6ddb578c4641eb8a972f101d237a319eaa16
authorbokan@chromium.org <bokan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 7 Nov 2013 20:33:55 +0000 (7 20:33 +0000)
committerbokan@chromium.org <bokan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 7 Nov 2013 20:33:55 +0000 (7 20:33 +0000)
treebe1c2d9b4c9b34099cdd3de6170a1f737644466c
parente921a039b1cc376dde4bd55590eac83e76f14840
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

Review URL: https://codereview.chromium.org/53283003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@233676 0039d316-1c4b-4281-b951-d872f2087c98
content/browser/android/content_view_core_impl.cc
content/browser/android/content_view_core_impl.h
content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
content/public/android/java/src/org/chromium/content/browser/ContentViewGestureHandler.java
content/public/android/javatests/src/org/chromium/content/browser/ContentViewGestureHandlerTest.java
tools/metrics/histograms/histograms.xml