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

Unified Diff: base/android/java/src/org/chromium/base/metrics/StatisticsRecorderAndroid.java

Issue 2378773010: Expose registered histograms from FeedbackCollector (Closed)
Patch Set: rebased, nyquist comments Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/android/base_jni_registrar.cc ('k') | base/android/statistics_recorder_android.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/android/java/src/org/chromium/base/metrics/StatisticsRecorderAndroid.java
diff --git a/base/android/java/src/org/chromium/base/metrics/StatisticsRecorderAndroid.java b/base/android/java/src/org/chromium/base/metrics/StatisticsRecorderAndroid.java
new file mode 100644
index 0000000000000000000000000000000000000000..62a379498384414edcea0e24ba84d461d13468c6
--- /dev/null
+++ b/base/android/java/src/org/chromium/base/metrics/StatisticsRecorderAndroid.java
@@ -0,0 +1,25 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+package org.chromium.base.metrics;
+
+import org.chromium.base.annotations.JNINamespace;
+
+/**
+ * Java API which exposes the registered histograms on the native side as
+ * JSON test.
+ */
+@JNINamespace("base::android")
+public final class StatisticsRecorderAndroid {
+ private StatisticsRecorderAndroid() {}
+
+ /**
+ * @return All the registered histograms as JSON text.
+ */
+ public static String toJson() {
+ return nativeToJson();
+ }
+
+ private static native String nativeToJson();
+}
« no previous file with comments | « base/android/base_jni_registrar.cc ('k') | base/android/statistics_recorder_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698