summaryrefslogtreecommitdiffstats
path: root/base/test/task_runner_test_template.h
diff options
context:
space:
mode:
authorvmpstr <vmpstr@chromium.org>2016-03-18 12:17:28 -0700
committerCommit bot <commit-bot@chromium.org>2016-03-18 19:18:21 +0000
commit82b0c16d66f85881e084ae16ef366ee4e6f4cffc (patch)
treef8859df99e138651eacc09e1cbd4e5dc57a09b5a /base/test/task_runner_test_template.h
parent7d6d85cc55de671a7585ecb356e2d1121d046a8b (diff)
downloadchromium_src-82b0c16d66f85881e084ae16ef366ee4e6f4cffc.zip
chromium_src-82b0c16d66f85881e084ae16ef366ee4e6f4cffc.tar.gz
chromium_src-82b0c16d66f85881e084ae16ef366ee4e6f4cffc.tar.bz2
base: Remove some unnecessary const scoped_refptr<>&.
This patch removes some unnecessary const scoped_refptr<>&. It replaces some instances with a copy of scoped_refptr, followed by a move. Other instances, it passes a raw non-owning pointer. R=danakj BUG=589044 Review URL: https://codereview.chromium.org/1800743003 Cr-Commit-Position: refs/heads/master@{#382043}
Diffstat (limited to 'base/test/task_runner_test_template.h')
-rw-r--r--base/test/task_runner_test_template.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/base/test/task_runner_test_template.h b/base/test/task_runner_test_template.h
index cc16469..c0d3a12 100644
--- a/base/test/task_runner_test_template.h
+++ b/base/test/task_runner_test_template.h
@@ -175,9 +175,8 @@ namespace test {
// Calls RunsTasksOnCurrentThread() on |task_runner| and expects it to
// equal |expected_value|.
-void ExpectRunsTasksOnCurrentThread(
- bool expected_value,
- const scoped_refptr<TaskRunner>& task_runner);
+void ExpectRunsTasksOnCurrentThread(bool expected_value,
+ TaskRunner* task_runner);
} // namespace test