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

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

Issue 2378773010: Expose registered histograms from FeedbackCollector (Closed)
Patch Set: ps 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 unified diff | Download patch
OLDNEW
(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 package org.chromium.base.metrics;
6
7 import org.chromium.base.annotations.JNINamespace;
8
9 /**
10 * Java API which exposes the registered histograms on the native side as
11 * JSON test.
12 */
13 @JNINamespace("base::android")
14 public class StatisticsRecorderAndroid {
nyquist 2016/10/03 20:55:38 Nit: Should this class be final?
tbansal1 2016/10/04 03:34:11 Done.
15 private StatisticsRecorderAndroid() {}
16
17 // Returns all the registered histograms as JSON text.
nyquist 2016/10/03 20:55:38 Nit: Use JavaDoc style (the /** ... */ stuff)
tbansal1 2016/10/04 03:34:11 Done.
18 public static String toJson() {
19 return nativeToJson();
20 }
21
22 private static native String nativeToJson();
23 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698