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

Side by Side Diff: chrome/browser/android/appmenu/app_menu_drag_helper.cc

Issue 1312153003: jni_generator: Pass object parameters as JavaParamRef. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 3 months 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 unified diff | Download patch
OLDNEW
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 bool RegisterAppMenuDragHelper(JNIEnv* env) { 9 bool RegisterAppMenuDragHelper(JNIEnv* env) {
10 return RegisterNativesImpl(env); 10 return RegisterNativesImpl(env);
11 } 11 }
12 12
13 // static 13 // static
14 void RecordAppMenuTouchDuration(JNIEnv* env, jclass jcaller, jlong time_ms) { 14 void RecordAppMenuTouchDuration(JNIEnv* env,
15 const JavaParamRef<jclass>& jcaller,
16 jlong time_ms) {
15 UMA_HISTOGRAM_TIMES("WrenchMenu.TouchDuration", 17 UMA_HISTOGRAM_TIMES("WrenchMenu.TouchDuration",
16 base::TimeDelta::FromMilliseconds(time_ms)); 18 base::TimeDelta::FromMilliseconds(time_ms));
17 } 19 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698