OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 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/statistics_recorder_android.h" |
| 6 |
| 7 #include <string> |
| 8 |
| 9 #include "base/android/jni_string.h" |
| 10 #include "base/metrics/statistics_recorder.h" |
| 11 #include "jni/StatisticsRecorderAndroid_jni.h" |
| 12 |
| 13 using base::android::JavaParamRef; |
| 14 using base::android::ConvertUTF8ToJavaString; |
| 15 |
| 16 namespace base { |
| 17 namespace android { |
| 18 |
| 19 static ScopedJavaLocalRef<jstring> ToJson(JNIEnv* env, |
| 20 const JavaParamRef<jclass>& clazz) { |
| 21 return ConvertUTF8ToJavaString( |
| 22 env, base::StatisticsRecorder::ToJSON(std::string())); |
| 23 } |
| 24 |
| 25 bool RegisterStatisticsRecorderAndroid(JNIEnv* env) { |
| 26 return RegisterNativesImpl(env); |
| 27 } |
| 28 |
| 29 } // namespace android |
| 30 } // namespace base |
OLD | NEW |