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

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

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.h
diff --git a/services/resource_coordinator/tracing/recorder.h b/services/resource_coordinator/tracing/recorder.h
index 7bc5bf846311b179263c2a72b94c927c13a26335..1530c6cafd1eb0cecfbf046d61ea2493b4fd35b2 100644
--- a/services/resource_coordinator/tracing/recorder.h
+++ b/services/resource_coordinator/tracing/recorder.h
@@ -43,13 +43,13 @@ class Recorder : public mojom::Recorder {
const std::string& data() const {
// All access to |data_| should be done on the background thread.
- DCHECK(background_task_runner_->RunsTasksOnCurrentThread());
+ DCHECK(background_task_runner_->RunsTasksInCurrentSequence());
return data_;
}
void clear_data() {
// All access to |data_| should be done on the background thread.
- DCHECK(background_task_runner_->RunsTasksOnCurrentThread());
+ DCHECK(background_task_runner_->RunsTasksInCurrentSequence());
data_.clear();
}
« no previous file with comments | « components/history/core/browser/top_sites_backend.cc ('k') | services/resource_coordinator/tracing/recorder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698