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 { |