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

Unified Diff: chrome/browser/android/metrics/uma_utils.cc

Issue 2248243002: Enabling sampling of UMA and crash reports on Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Theresa's and dfalcantara's comments with sync Created 4 years, 4 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 | « chrome/browser/android/metrics/uma_session_stats.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/metrics/uma_utils.cc
diff --git a/chrome/browser/android/metrics/uma_utils.cc b/chrome/browser/android/metrics/uma_utils.cc
index fe103181b93701cb14653282fb429161895a249c..f0d1c2d5e58d5e7688b681e3142d1b5fe32606b7 100644
--- a/chrome/browser/android/metrics/uma_utils.cc
+++ b/chrome/browser/android/metrics/uma_utils.cc
@@ -7,6 +7,7 @@
#include <stdint.h>
#include "chrome/browser/browser_process.h"
+#include "chrome/browser/metrics/chrome_metrics_services_manager_client.h"
#include "components/metrics/metrics_reporting_default_state.h"
#include "jni/UmaUtils_jni.h"
@@ -24,6 +25,12 @@ base::Time GetMainEntryPointTime() {
base::TimeDelta::FromMilliseconds(startTimeUnixMs);
}
+static jboolean IsClientInMetricsReportingSample(
+ JNIEnv* env,
+ const JavaParamRef<jclass>& obj) {
+ return ChromeMetricsServicesManagerClient::IsClientInSample();
+}
+
static void RecordMetricsReportingDefaultOptIn(JNIEnv* env,
const JavaParamRef<jclass>& obj,
jboolean opt_in) {
« no previous file with comments | « chrome/browser/android/metrics/uma_session_stats.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698