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

Unified Diff: base/test/launcher/test_launcher.cc

Issue 1815363002: Add RetainedRef uses where needed. (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/launcher/test_launcher.cc
diff --git a/base/test/launcher/test_launcher.cc b/base/test/launcher/test_launcher.cc
index e7ab873a2d247ad4a06b47ee47512551170e3ae5..6aeee1883a2c84f0739176785340552165014933 100644
--- a/base/test/launcher/test_launcher.cc
+++ b/base/test/launcher/test_launcher.cc
@@ -537,10 +537,11 @@ void TestLauncher::LaunchChildGTestProcess(
bool redirect_stdio = (parallel_jobs_ > 1) || BotModeEnabled();
worker_pool_owner_->pool()->PostWorkerTask(
- FROM_HERE, Bind(&DoLaunchChildTestProcess, new_command_line, timeout,
- flags, redirect_stdio, ThreadTaskRunnerHandle::Get(),
- Bind(&TestLauncher::OnLaunchTestProcessFinished,
- Unretained(this), callback)));
+ FROM_HERE,
+ Bind(&DoLaunchChildTestProcess, new_command_line, timeout, flags,
+ redirect_stdio, RetainedRef(ThreadTaskRunnerHandle::Get()),
+ Bind(&TestLauncher::OnLaunchTestProcessFinished, Unretained(this),
+ callback)));
}
void TestLauncher::OnTestFinished(const TestResult& result) {

Powered by Google App Engine
This is Rietveld 408576698