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

Unified Diff: base/test/sequenced_task_runner_test_template.cc

Issue 1800743003: base: Remove some unnecessary const scoped_refptr<>&. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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: base/test/sequenced_task_runner_test_template.cc
diff --git a/base/test/sequenced_task_runner_test_template.cc b/base/test/sequenced_task_runner_test_template.cc
index 010f439d749f5d6016e287b993422922b0291608..0022aac36eed6b5471a0104cf2dec1580e58b89d 100644
--- a/base/test/sequenced_task_runner_test_template.cc
+++ b/base/test/sequenced_task_runner_test_template.cc
@@ -23,7 +23,7 @@ SequencedTaskTracker::SequencedTaskTracker()
}
void SequencedTaskTracker::PostWrappedNonNestableTask(
- const scoped_refptr<SequencedTaskRunner>& task_runner,
+ SequencedTaskRunner* task_runner,
const Closure& task) {
AutoLock event_lock(lock_);
const int post_i = next_post_i_++;
@@ -34,7 +34,7 @@ void SequencedTaskTracker::PostWrappedNonNestableTask(
}
void SequencedTaskTracker::PostWrappedNestableTask(
- const scoped_refptr<SequencedTaskRunner>& task_runner,
+ SequencedTaskRunner* task_runner,
const Closure& task) {
AutoLock event_lock(lock_);
const int post_i = next_post_i_++;
@@ -45,7 +45,7 @@ void SequencedTaskTracker::PostWrappedNestableTask(
}
void SequencedTaskTracker::PostWrappedDelayedNonNestableTask(
- const scoped_refptr<SequencedTaskRunner>& task_runner,
+ SequencedTaskRunner* task_runner,
const Closure& task,
TimeDelta delay) {
AutoLock event_lock(lock_);
@@ -57,7 +57,7 @@ void SequencedTaskTracker::PostWrappedDelayedNonNestableTask(
}
void SequencedTaskTracker::PostNonNestableTasks(
- const scoped_refptr<SequencedTaskRunner>& task_runner,
+ SequencedTaskRunner* task_runner,
int task_count) {
for (int i = 0; i < task_count; ++i) {
PostWrappedNonNestableTask(task_runner, Closure());

Powered by Google App Engine
This is Rietveld 408576698