Chromium Code Reviews| Index: chrome/android/java/src/org/chromium/chrome/browser/metrics/UmaUtils.java |
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/metrics/UmaUtils.java b/chrome/android/java/src/org/chromium/chrome/browser/metrics/UmaUtils.java |
| index 6dad167052a8710a0976162c10d4193cd44ae864..cbb2a0f24f77cbc3769fc2cdb5370a256e84724a 100644 |
| --- a/chrome/android/java/src/org/chromium/chrome/browser/metrics/UmaUtils.java |
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/metrics/UmaUtils.java |
| @@ -55,6 +55,14 @@ public class UmaUtils { |
| } |
| /** |
| + * Determines if this client is eligible to send metrics. If they are, and there was user |
|
gayane -on leave until 09-2017
2016/08/23 22:43:51
This affects crashes as well. Names get long, but
jwd
2016/08/24 15:06:27
Done.
|
| + * consent, then metrics and crashes would be reported. |
| + */ |
| + public static boolean isClientInMetricsReportingSample() { |
| + return nativeIsClientInMetricsReportingSample(); |
| + } |
| + |
| + /** |
| * Sets whether metrics reporting was opt-in or not. If it was opt-in, then the enable checkbox |
| * on first-run was default unchecked. If it was opt-out, then the checkbox was default checked. |
| * This should only be set once, and only during first-run. |
| @@ -73,5 +81,6 @@ public class UmaUtils { |
| return sForegroundStartTimeMs; |
| } |
| + private static native boolean nativeIsClientInMetricsReportingSample(); |
| private static native void nativeRecordMetricsReportingDefaultOptIn(boolean optIn); |
| } |