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

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: 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..1a6bdce57cda49a18505f064b95da2362de3d06b
--- /dev/null
+++ b/chrome/browser/android/appmenu/app_menu_drag_helper.cc
@@ -0,0 +1,22 @@
+// 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"
+
+namespace appmenu {
Ted C 2014/12/10 17:28:55 These namespaces are way too specific. I think in
Kibeom Kim (inactive) 2014/12/15 22:14:30 Done.
+namespace android {
+
+bool RegisterAppMenuDragHelper(JNIEnv* env) {
+ return RegisterNativesImpl(env);
+}
+
+void RecordTouchDuration(JNIEnv* env, jclass jcaller, jlong time_ms) {
Ted C 2014/12/10 17:28:55 add "// static" above this.
Kibeom Kim (inactive) 2014/12/15 22:14:30 Done.
+ UMA_HISTOGRAM_TIMES("AppMenu.TouchDuration",
+ base::TimeDelta::FromMilliseconds(time_ms));
+}
+
+} // namespace android
+} // namespace appmenu

Powered by Google App Engine
This is Rietveld 408576698