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

Unified Diff: chrome/browser/profiles/profile_io_data.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 | « chrome/browser/metrics/metrics_reporting_state.cc ('k') | chrome/common/pref_names.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_io_data.cc
diff --git a/chrome/browser/profiles/profile_io_data.cc b/chrome/browser/profiles/profile_io_data.cc
index 995cdf946cac1d316a781373888b584c39c35bd5..31ead23d683cf3a5524b55d552cc958be8be0c65 100644
--- a/chrome/browser/profiles/profile_io_data.cc
+++ b/chrome/browser/profiles/profile_io_data.cc
@@ -891,22 +891,12 @@ bool ProfileIOData::IsOffTheRecord() const {
void ProfileIOData::InitializeMetricsEnabledStateOnUIThread() {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
-#if BUILDFLAG(ANDROID_JAVA_UI)
- // TODO(dwkang): rename or unify the pref for UMA once we have conclusion
- // in crbugs.com/246495.
- // Android has it's own preferences for metrics / crash uploading.
- enable_metrics_.Init(prefs::kCrashReportingEnabled,
- g_browser_process->local_state());
- enable_metrics_.MoveToThread(
- BrowserThread::GetTaskRunnerForThread(BrowserThread::IO));
-#else
// Prep the PrefMember and send it to the IO thread, since this value will be
// read from there.
enable_metrics_.Init(metrics::prefs::kMetricsReportingEnabled,
g_browser_process->local_state());
enable_metrics_.MoveToThread(
BrowserThread::GetTaskRunnerForThread(BrowserThread::IO));
-#endif // BUILDFLAG(ANDROID_JAVA_UI)
}
bool ProfileIOData::GetMetricsEnabledStateOnIOThread() const {
« no previous file with comments | « chrome/browser/metrics/metrics_reporting_state.cc ('k') | chrome/common/pref_names.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698