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

Unified Diff: services/resource_coordinator/tracing/recorder.cc

Issue 2960373002: Rename TaskRunner::RunsTasksOnCurrentThread() in //service, //components (Closed)
Patch Set: Created 3 years, 6 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: services/resource_coordinator/tracing/recorder.cc
diff --git a/services/resource_coordinator/tracing/recorder.cc b/services/resource_coordinator/tracing/recorder.cc
index fa4f449b0496f83ae61155738c7a7f881bf41178..7997cb1aa05ccfdb0f8e2e085a7e08d1ff158353 100644
--- a/services/resource_coordinator/tracing/recorder.cc
+++ b/services/resource_coordinator/tracing/recorder.cc
@@ -31,7 +31,7 @@ Recorder::~Recorder() = default;
void Recorder::AddChunk(const std::string& chunk) {
if (chunk.empty())
return;
- if (!background_task_runner_->RunsTasksOnCurrentThread()) {
+ if (!background_task_runner_->RunsTasksInCurrentSequence()) {
background_task_runner_->PostTask(
FROM_HERE, base::BindRepeating(&Recorder::AddChunk,
weak_factory_.GetWeakPtr(), chunk));
« no previous file with comments | « services/resource_coordinator/tracing/recorder.h ('k') | services/service_manager/embedder/embedded_service_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698