Skip to content

Commit

Permalink
ipc/ fixups for scoped_refptr operator T* removal.
Browse files Browse the repository at this point in the history
BUG=110610

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

Cr-Commit-Position: refs/heads/master@{#293170}
  • Loading branch information
zetafunction authored and Commit bot committed Sep 3, 2014
1 parent 6087f97 commit ff04843
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 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().get());
DCHECK_NE(ipc_task_runner.get(), base::ThreadTaskRunnerHandle::Get().get());
StartWatching();
}

Expand Down
2 changes: 1 addition & 1 deletion ipc/ipc_test_base.cc
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ void IPCTestBase::CreateChannelFromChannelHandle(

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_),
Expand Down
5 changes: 3 additions & 2 deletions ipc/ipc_test_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,9 @@ class IPCTestBase : public base::MultiProcessTest {
// 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
Expand Down

0 comments on commit ff04843

Please sign in to comment.