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

Unified Diff: chrome/browser/chrome_browser_main.cc

Issue 1859213002: Move the thread hop for UMA user actions from content:: to base::. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing bugs. Created 4 years, 8 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
Index: chrome/browser/chrome_browser_main.cc
diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc
index c3e48db67c183055ee54683f3e3ffdc41bd89c1d..4243afc4489e1d875bd5973ccb5dfeee488d7411 100644
--- a/chrome/browser/chrome_browser_main.cc
+++ b/chrome/browser/chrome_browser_main.cc
@@ -22,6 +22,7 @@
#include "base/files/file_util.h"
#include "base/metrics/field_trial.h"
#include "base/metrics/histogram_macros.h"
+#include "base/metrics/user_metrics.h"
#include "base/path_service.h"
#include "base/profiler/scoped_profile.h"
#include "base/profiler/scoped_tracker.h"
@@ -666,6 +667,9 @@ void ChromeBrowserMainParts::SetupMetricsAndFieldTrials() {
// but before field trials are set up (so that client ID is available for
// one-time randomized field trials).
+ base::SetRecordActionTaskRunner(
+ BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI));
piman 2016/04/18 21:13:08 Should this be done in content/ ? There are tests
beaudoin 2016/04/19 16:57:27 asvitkine@ for opinions. My opinion is that other
Alexei Svitkine (slow) 2016/04/19 17:56:41 Yeah, since this only affects cases where AddActio
+
// Initialize FieldTrialList to support FieldTrials that use one-time
// randomization.
metrics::MetricsService* metrics = browser_process_->metrics_service();

Powered by Google App Engine
This is Rietveld 408576698