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

Unified Diff: ipc/ipc_perftest_support.cc

Issue 2159293002: Plumb explicit IPC task runner through to IPC::Channel creation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add dcheck Created 4 years, 5 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
« no previous file with comments | « ipc/ipc_mojo_perftest.cc ('k') | ipc/ipc_send_fds_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc_perftest_support.cc
diff --git a/ipc/ipc_perftest_support.cc b/ipc/ipc_perftest_support.cc
index 2932ce838f307e2f635b4bbc4f29f0d13ed1b603..ec6f9d1776e2cbe6f93834538cea1922a75883d1 100644
--- a/ipc/ipc_perftest_support.cc
+++ b/ipc/ipc_perftest_support.cc
@@ -20,6 +20,7 @@
#include "base/test/perf_time_logger.h"
#include "base/test/test_io_thread.h"
#include "base/threading/thread.h"
+#include "base/threading/thread_task_runner_handle.h"
#include "base/time/time.h"
#include "build/build_config.h"
#include "ipc/ipc_channel.h"
@@ -335,8 +336,9 @@ PingPongTestClient::~PingPongTestClient() {
}
std::unique_ptr<Channel> PingPongTestClient::CreateChannel(Listener* listener) {
- return Channel::CreateClient(IPCTestBase::GetChannelName("PerformanceClient"),
- listener);
+ return Channel::CreateClient(
+ IPCTestBase::GetChannelName("PerformanceClient"), listener,
+ base::ThreadTaskRunnerHandle::Get());
}
int PingPongTestClient::RunMain() {
« no previous file with comments | « ipc/ipc_mojo_perftest.cc ('k') | ipc/ipc_send_fds_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698