1 // Copyright 2016 The Chromium Authors 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/statistics_recorder.h" 6 7 #include <string> 8 9 #include "base/android/jni_string.h" 10 #include "base/metrics/histogram_base.h" 11 #include "base/system/sys_info.h" 12 13 // Must come after all headers that specialize FromJniType() / ToJniType(). 14 #include "base/metrics_jni/StatisticsRecorderAndroid_jni.h" 15 16 namespace base { 17 namespace android { 18 JNI_StatisticsRecorderAndroid_ToJson(JNIEnv * env,JSONVerbosityLevel verbosityLevel)19static std::string JNI_StatisticsRecorderAndroid_ToJson( 20 JNIEnv* env, 21 JSONVerbosityLevel verbosityLevel) { 22 return base::StatisticsRecorder::ToJSON(verbosityLevel); 23 } 24 25 } // namespace android 26 } // namespace base 27