ipc/ fixups for scoped_refptr operator T* removal.
BUG=110610
Review URL: https://codereview.chromium.org/535723002
Cr-Commit-Position: refs/heads/master@{#293170}
diff --git a/ipc/ipc_sync_channel.cc b/ipc/ipc_sync_channel.cc
index 0e3c8ba..50ea3df 100644
--- a/ipc/ipc_sync_channel.cc
+++ b/ipc/ipc_sync_channel.cc
@@ -448,7 +448,7 @@
: ChannelProxy(new SyncContext(listener, ipc_task_runner, shutdown_event)) {
// The current (listener) thread must be distinct from the IPC thread, or else
// sending synchronous messages will deadlock.
- DCHECK_NE(ipc_task_runner, base::ThreadTaskRunnerHandle::Get().get());
+ DCHECK_NE(ipc_task_runner.get(), base::ThreadTaskRunnerHandle::Get().get());
StartWatching();
}
diff --git a/ipc/ipc_test_base.cc b/ipc/ipc_test_base.cc
index 974329d..7adb1a4 100644
--- a/ipc/ipc_test_base.cc
+++ b/ipc/ipc_test_base.cc
@@ -83,7 +83,7 @@
void IPCTestBase::CreateChannelProxy(
IPC::Listener* listener,
- base::SingleThreadTaskRunner* ipc_task_runner) {
+ const scoped_refptr<base::SingleThreadTaskRunner>& ipc_task_runner) {
CHECK(!channel_.get());
CHECK(!channel_proxy_.get());
channel_proxy_ = IPC::ChannelProxy::Create(GetChannelName(test_client_name_),
diff --git a/ipc/ipc_test_base.h b/ipc/ipc_test_base.h
index acad477..c3040019d 100644
--- a/ipc/ipc_test_base.h
+++ b/ipc/ipc_test_base.h
@@ -61,8 +61,9 @@
// channel proxy will automatically create and connect a channel.) You must
// (manually) destroy the channel proxy before the task runner's thread is
// destroyed.
- void CreateChannelProxy(IPC::Listener* listener,
- base::SingleThreadTaskRunner* ipc_task_runner);
+ void CreateChannelProxy(
+ IPC::Listener* listener,
+ const scoped_refptr<base::SingleThreadTaskRunner>& ipc_task_runner);
void DestroyChannelProxy();
// Starts the client process, returning true if successful; this should be