Skip to content

Commit

Permalink
Remove implicit conversions from scoped_refptr to T* in ipc/
Browse files Browse the repository at this point in the history
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}
  • Loading branch information
zetafunction authored and Commit bot committed Aug 27, 2014
1 parent a27920f commit d4d317a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ipc/ipc_sync_channel.cc
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ SyncChannel::SyncChannel(
: 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());
DCHECK_NE(ipc_task_runner, base::ThreadTaskRunnerHandle::Get().get());
StartWatching();
}

Expand Down
2 changes: 1 addition & 1 deletion ipc/mojo/ipc_channel_mojo.cc
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ ChannelMojo::ChannelMojo(
bootstrap_(bootstrap.Pass()),
mode_(mode), listener_(listener),
peer_pid_(base::kNullProcessId) {
if (base::MessageLoopProxy::current() == io_thread_task_runner) {
if (base::MessageLoopProxy::current() == io_thread_task_runner.get()) {
InitOnIOThread();
} else {
io_thread_task_runner->PostTask(FROM_HERE,
Expand Down

0 comments on commit d4d317a

Please sign in to comment.