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

Unified Diff: content/public/browser/histogram_fetcher.h

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 | « content/browser/histogram_synchronizer.cc ('k') | content/public/test/browser_test_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/histogram_fetcher.h
diff --git a/content/public/browser/histogram_fetcher.h b/content/public/browser/histogram_fetcher.h
index 3b0334403048ed22c757af967064d25e8ba4557d..e7625ce540502aaafdc6ee19bed9aafbba894af1 100644
--- a/content/public/browser/histogram_fetcher.h
+++ b/content/public/browser/histogram_fetcher.h
@@ -6,13 +6,10 @@
#define CONTENT_PUBLIC_BROWSER_HISTOGRAM_FETCHER_H_
#include "base/callback.h"
+#include "base/task_runner.h"
#include "base/time/time.h"
#include "content/common/content_export.h"
-namespace base {
-class MessageLoop;
-}
-
namespace content {
// Fetch histogram data asynchronously from the various child processes, into
@@ -20,10 +17,10 @@ namespace content {
// preparation for a log upload. It contacts all processes, and get them to
// upload to the browser any/all changes to histograms. When all changes have
// been acquired, or when the wait time expires (whichever is sooner), post the
-// callback to the specified message loop. Note the callback is posted exactly
+// callback to the specified TaskRunner. Note the callback is posted exactly
// once.
CONTENT_EXPORT void FetchHistogramsAsynchronously(
- base::MessageLoop* callback_thread,
+ scoped_refptr<base::TaskRunner> task_runner,
const base::Closure& callback,
base::TimeDelta wait_time);
« no previous file with comments | « content/browser/histogram_synchronizer.cc ('k') | content/public/test/browser_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698