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

Unified Diff: chrome/browser/metrics/chrome_metrics_services_manager_client.cc

Issue 2237643002: Delay asynchronous work from the metrics clients until after startup. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@b2_afterstartup_runner
Patch Set: rebase dependent Created 4 years, 4 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/metrics/chrome_metrics_services_manager_client.cc
diff --git a/chrome/browser/metrics/chrome_metrics_services_manager_client.cc b/chrome/browser/metrics/chrome_metrics_services_manager_client.cc
index c1224a28180afad63684aa45e5b12ca5efec652b..77ae96b1df9115015ea3796c5d500aea8d4c8299 100644
--- a/chrome/browser/metrics/chrome_metrics_services_manager_client.cc
+++ b/chrome/browser/metrics/chrome_metrics_services_manager_client.cc
@@ -39,8 +39,8 @@ const base::Feature kMetricsReportingFeature{"MetricsReporting",
// Posts |GoogleUpdateSettings::StoreMetricsClientInfo| on blocking pool thread
// because it needs access to IO and cannot work from UI thread.
void PostStoreMetricsClientInfo(const metrics::ClientInfo& client_info) {
- content::BrowserThread::GetBlockingPool()->PostTask(
- FROM_HERE,
+ content::BrowserThread::PostAfterStartupTask(
+ FROM_HERE, content::BrowserThread::GetBlockingPool(),
Alexei Svitkine (slow) 2016/08/12 18:28:18 Hmm, in the following CL I'm clearing the client i
gab 2016/08/15 19:39:56 If there is, the race condition already exists tod
base::Bind(&GoogleUpdateSettings::StoreMetricsClientInfo, client_info));
}

Powered by Google App Engine
This is Rietveld 408576698