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

Unified Diff: services/shell/standalone/tracer.cc

Issue 2375663002: Replace MessageLoop::current()->task_runner() with ThreadTaskRunnerHandle::Get(). (Closed)
Patch Set: rebase Created 4 years, 3 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 | « services/shell/standalone/context.cc ('k') | services/tracing/public/cpp/provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/shell/standalone/tracer.cc
diff --git a/services/shell/standalone/tracer.cc b/services/shell/standalone/tracer.cc
index 84408fc638c4801c853a3426812bd88ae1a2bd7a..84564b4049c17d4e53e0e0cbae1e7cf814cbfb0a 100644
--- a/services/shell/standalone/tracer.cc
+++ b/services/shell/standalone/tracer.cc
@@ -14,6 +14,7 @@
#include "base/strings/string_number_conversions.h"
#include "base/synchronization/waitable_event.h"
#include "base/threading/thread.h"
+#include "base/threading/thread_task_runner_handle.h"
#include "base/trace_event/trace_config.h"
#include "base/trace_event/trace_event.h"
@@ -43,7 +44,7 @@ void Tracer::Start(const std::string& categories,
<< "Could not parse --trace-startup-duration value "
<< duration_seconds_str;
}
- base::MessageLoop::current()->task_runner()->PostDelayedTask(
+ base::ThreadTaskRunnerHandle::Get()->PostDelayedTask(
FROM_HERE,
base::Bind(&Tracer::StopAndFlushToFile, base::Unretained(this)),
base::TimeDelta::FromSeconds(trace_duration_secs));
« no previous file with comments | « services/shell/standalone/context.cc ('k') | services/tracing/public/cpp/provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698