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

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: Answered Alexei and Ilya. 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 7215befad67a786ef1f4510ac38675c9543f4a60..a48b0afa0e0a2b2d751ecfbdbad01d9d11ef8496 100644
--- a/components/metrics/metrics_service.cc
+++ b/components/metrics/metrics_service.cc
@@ -304,6 +304,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