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

Unified Diff: chrome/browser/metrics/chrome_metrics_service_accessor.cc

Issue 2351873002: Clean up UMA 3g experiment and unify metrics enabled pref for Android (Closed)
Patch Set: remove optimization param Created 4 years, 3 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 | « no previous file | chrome/browser/metrics/chrome_metrics_service_accessor_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/metrics/chrome_metrics_service_accessor.cc
diff --git a/chrome/browser/metrics/chrome_metrics_service_accessor.cc b/chrome/browser/metrics/chrome_metrics_service_accessor.cc
index ceb626cc5aac5a01d1be9b2b569719d7914840e8..49d0b57bf0fe1b73cfe915774e6e5322c621d8c0 100644
--- a/chrome/browser/metrics/chrome_metrics_service_accessor.cc
+++ b/chrome/browser/metrics/chrome_metrics_service_accessor.cc
@@ -49,20 +49,7 @@ bool ChromeMetricsServiceAccessor::IsMetricsAndCrashReportingEnabled() {
return false;
}
-#if !BUILDFLAG(ANDROID_JAVA_UI)
return IsMetricsReportingEnabled(g_browser_process->local_state());
-#else
- // Android currently obtain the value for whether the user has
- // obtain metrics reporting in non-standard ways.
- // TODO(gayane): Consolidate metric prefs on all platforms and eliminate this
- // special-case code, instead having all platforms go through the above flow.
- // http://crbug.com/362192, http://crbug.com/532084
- bool pref_value = false;
-
- pref_value = g_browser_process->local_state()->GetBoolean(
- prefs::kCrashReportingEnabled);
- return IsMetricsReportingEnabledWithPrefValue(pref_value);
-#endif // !BUILDFLAG(ANDROID_JAVA_UI)
}
// static
« no previous file with comments | « no previous file | chrome/browser/metrics/chrome_metrics_service_accessor_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698