Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "base/metrics/histogram_macros.h" | |
| 6 #include "chrome/browser/android/appmenu/app_menu_drag_helper.h" | |
| 7 #include "jni/AppMenuDragHelper_jni.h" | |
| 8 | |
| 9 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.
| |
| 10 namespace android { | |
| 11 | |
| 12 bool RegisterAppMenuDragHelper(JNIEnv* env) { | |
| 13 return RegisterNativesImpl(env); | |
| 14 } | |
| 15 | |
| 16 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.
| |
| 17 UMA_HISTOGRAM_TIMES("AppMenu.TouchDuration", | |
| 18 base::TimeDelta::FromMilliseconds(time_ms)); | |
| 19 } | |
| 20 | |
| 21 } // namespace android | |
| 22 } // namespace appmenu | |
| OLD | NEW |