Commit d4d317a4 authored by dcheng's avatar dcheng Committed by Commit bot

Remove implicit conversions from scoped_refptr to T* in ipc/

This patch was generated by running the rewrite_scoped_refptr clang tool
on a Linux build.

BUG=110610

Review URL: https://codereview.chromium.org/507773002

Cr-Commit-Position: refs/heads/master@{#292130}
parent a27920ff
...@@ -448,7 +448,7 @@ SyncChannel::SyncChannel( ...@@ -448,7 +448,7 @@ SyncChannel::SyncChannel(
: ChannelProxy(new SyncContext(listener, ipc_task_runner, shutdown_event)) { : ChannelProxy(new SyncContext(listener, ipc_task_runner, shutdown_event)) {
// The current (listener) thread must be distinct from the IPC thread, or else // The current (listener) thread must be distinct from the IPC thread, or else
// sending synchronous messages will deadlock. // sending synchronous messages will deadlock.
DCHECK_NE(ipc_task_runner, base::ThreadTaskRunnerHandle::Get()); DCHECK_NE(ipc_task_runner, base::ThreadTaskRunnerHandle::Get().get());
StartWatching(); StartWatching();
} }
......
...@@ -488,7 +488,7 @@ ChannelMojo::ChannelMojo( ...@@ -488,7 +488,7 @@ ChannelMojo::ChannelMojo(
bootstrap_(bootstrap.Pass()), bootstrap_(bootstrap.Pass()),
mode_(mode), listener_(listener), mode_(mode), listener_(listener),
peer_pid_(base::kNullProcessId) { peer_pid_(base::kNullProcessId) {
if (base::MessageLoopProxy::current() == io_thread_task_runner) { if (base::MessageLoopProxy::current() == io_thread_task_runner.get()) {
InitOnIOThread(); InitOnIOThread();
} else { } else {
io_thread_task_runner->PostTask(FROM_HERE, io_thread_task_runner->PostTask(FROM_HERE,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment