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

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

Issue 2412903002: Remove MessageLoop::current() from chrome_metrics_service_client.cc (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « no previous file | content/browser/histogram_synchronizer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/metrics/chrome_metrics_service_client.cc
diff --git a/chrome/browser/metrics/chrome_metrics_service_client.cc b/chrome/browser/metrics/chrome_metrics_service_client.cc
index 4ccf049baebec4a84be1f0db5405acb8ca0a8d96..7d4120f0d25af10057aaa19b2dae656cdb44ea51 100644
--- a/chrome/browser/metrics/chrome_metrics_service_client.cc
+++ b/chrome/browser/metrics/chrome_metrics_service_client.cc
@@ -21,6 +21,7 @@
#include "base/rand_util.h"
#include "base/strings/string16.h"
#include "base/threading/platform_thread.h"
+#include "base/threading/thread_task_runner_handle.h"
#include "build/build_config.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/chrome_notification_types.h"
@@ -743,8 +744,8 @@ void ChromeMetricsServiceClient::OnMemoryDetailCollectionDone() {
// Set up the callback task to call after we receive histograms from all
// child processes. |timeout| specifies how long to wait before absolutely
// calling us back on the task.
- content::FetchHistogramsAsynchronously(base::MessageLoop::current(), callback,
- timeout);
+ content::FetchHistogramsAsynchronously(base::ThreadTaskRunnerHandle::Get(),
+ callback, timeout);
}
void ChromeMetricsServiceClient::OnHistogramSynchronizationDone() {
« no previous file with comments | « no previous file | content/browser/histogram_synchronizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698