Index: content/browser/android/content_view_core_impl.cc |
diff --git a/content/browser/android/content_view_core_impl.cc b/content/browser/android/content_view_core_impl.cc |
index ba493a94b2d70b3d58a9f80b1d7aaf7a4dbf8787..75454c56d04cd28cb8ff9a1e370a4e84f8b57de6 100644 |
--- a/content/browser/android/content_view_core_impl.cc |
+++ b/content/browser/android/content_view_core_impl.cc |
@@ -11,6 +11,7 @@ |
#include "base/command_line.h" |
#include "base/json/json_writer.h" |
#include "base/logging.h" |
+#include "base/metrics/histogram.h" |
#include "base/strings/utf_string_conversions.h" |
#include "base/values.h" |
#include "cc/layers/layer.h" |
@@ -1627,6 +1628,31 @@ void ContentViewCoreImpl::SetAccessibilityEnabled(JNIEnv* env, jobject obj, |
} |
} |
+void ContentViewCoreImpl::SendSingleTapUma(JNIEnv* env, |
+ jobject obj, |
+ jint type, |
+ jint count) { |
+ UMA_HISTOGRAM_ENUMERATION("Event.SingleTapType", type, count); |
+} |
+ |
+void ContentViewCoreImpl::SendActionAfterDoubleTapUma(JNIEnv* env, |
+ jobject obj, |
+ jint type, |
+ jboolean has_delay, |
+ jint count) { |
+ // This UMA stat tracks a user's action after a double tap within |
+ // k seconds (where k == 5 currently). This UMA will tell us if |
+ // removing the tap gesture delay will lead to significantly more |
+ // accidental navigations after a double tap. |
+ if (has_delay) { |
+ UMA_HISTOGRAM_ENUMERATION("Event.ActionAfterDoubleTapWithDelay", type, |
+ count); |
+ } else { |
+ UMA_HISTOGRAM_ENUMERATION("Event.ActionAfterDoubleTapNoDelay", type, |
+ count); |
+ } |
+} |
+ |
void ContentViewCoreImpl::SendOrientationChangeEventInternal() { |
RenderWidgetHostViewAndroid* rwhv = GetRenderWidgetHostViewAndroid(); |
if (rwhv) |