OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "base/metrics/histogram_macros.h" | 5 #include "base/metrics/histogram_macros.h" |
6 #include "chrome/browser/android/appmenu/app_menu_drag_helper.h" | 6 #include "chrome/browser/android/appmenu/app_menu_drag_helper.h" |
7 #include "jni/AppMenuDragHelper_jni.h" | 7 #include "jni/AppMenuDragHelper_jni.h" |
8 | 8 |
| 9 using base::android::JavaParamRef; |
| 10 |
9 bool RegisterAppMenuDragHelper(JNIEnv* env) { | 11 bool RegisterAppMenuDragHelper(JNIEnv* env) { |
10 return RegisterNativesImpl(env); | 12 return RegisterNativesImpl(env); |
11 } | 13 } |
12 | 14 |
13 // static | 15 // static |
14 void RecordAppMenuTouchDuration(JNIEnv* env, | 16 void RecordAppMenuTouchDuration(JNIEnv* env, |
15 const JavaParamRef<jclass>& jcaller, | 17 const JavaParamRef<jclass>& jcaller, |
16 jlong time_ms) { | 18 jlong time_ms) { |
17 UMA_HISTOGRAM_TIMES("WrenchMenu.TouchDuration", | 19 UMA_HISTOGRAM_TIMES("WrenchMenu.TouchDuration", |
18 base::TimeDelta::FromMilliseconds(time_ms)); | 20 base::TimeDelta::FromMilliseconds(time_ms)); |
19 } | 21 } |
OLD | NEW |