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

Unified Diff: components/metrics/metrics_service.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: 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: components/metrics/metrics_service.cc
diff --git a/components/metrics/metrics_service.cc b/components/metrics/metrics_service.cc
index c3ef7ec71d8dd9b69774d8c46a4a1ebb4196c61a..4e6abf35a49c95b5a3059980dd4d816ab4e2e081 100644
--- a/components/metrics/metrics_service.cc
+++ b/components/metrics/metrics_service.cc
@@ -301,6 +301,8 @@ MetricsService::MetricsService(MetricsStateManager* state_manager,
DCHECK(client_);
DCHECK(local_state_);
+ base::SetRecordActionTaskRunner(client_->GetMainThreadTaskRunner());
+
// Set the install date if this is our first run.
int64_t install_date = local_state_->GetInt64(prefs::kInstallDate);
if (install_date == 0)

Powered by Google App Engine
This is Rietveld 408576698