| OLD | NEW |
| (Empty) |
| 1 // Copyright 2015 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/android/record_user_action.h" | |
| 6 | |
| 7 #include "base/android/jni_string.h" | |
| 8 #include "base/metrics/user_metrics.h" | |
| 9 #include "jni/RecordUserAction_jni.h" | |
| 10 | |
| 11 namespace base { | |
| 12 namespace android { | |
| 13 | |
| 14 static void RecordUserAction(JNIEnv* env, jclass clazz, jstring j_action) { | |
| 15 RecordComputedAction(ConvertJavaStringToUTF8(env, j_action)); | |
| 16 } | |
| 17 | |
| 18 // Register native methods | |
| 19 bool RegisterRecordUserAction(JNIEnv* env) { | |
| 20 return RegisterNativesImpl(env); | |
| 21 } | |
| 22 | |
| 23 } // namespace android | |
| 24 } // namespace base | |
| OLD | NEW |