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

Unified Diff: chrome/browser/android/appmenu/app_menu_drag_helper.cc

Issue 763253005: [Android] Add AppMenu touch duration metric. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed comments Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/android/appmenu/app_menu_drag_helper.cc
diff --git a/chrome/browser/android/appmenu/app_menu_drag_helper.cc b/chrome/browser/android/appmenu/app_menu_drag_helper.cc
new file mode 100644
index 0000000000000000000000000000000000000000..7d285d569d4cf51bdd1ac0bbe1e11c02c9dabe57
--- /dev/null
+++ b/chrome/browser/android/appmenu/app_menu_drag_helper.cc
@@ -0,0 +1,17 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "base/metrics/histogram_macros.h"
+#include "chrome/browser/android/appmenu/app_menu_drag_helper.h"
+#include "jni/AppMenuDragHelper_jni.h"
+
+bool RegisterAppMenuDragHelper(JNIEnv* env) {
+ return RegisterNativesImpl(env);
+}
+
+// static
+void RecordAppMenuTouchDuration(JNIEnv* env, jclass jcaller, jlong time_ms) {
+ UMA_HISTOGRAM_TIMES("WrenchMenu.TouchDuration",
+ base::TimeDelta::FromMilliseconds(time_ms));
+}
« no previous file with comments | « chrome/browser/android/appmenu/app_menu_drag_helper.h ('k') | chrome/browser/android/chrome_jni_registrar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698