| Index: ipc/ipc_channel_proxy.cc
|
| diff --git a/ipc/ipc_channel_proxy.cc b/ipc/ipc_channel_proxy.cc
|
| index 616a99404cc11c63411abb3325515b2050246ed7..d35328e4573df1edb52a16cfa8ac7e3bf0acb128 100644
|
| --- a/ipc/ipc_channel_proxy.cc
|
| +++ b/ipc/ipc_channel_proxy.cc
|
| @@ -439,7 +439,7 @@ ChannelProxy::ChannelProxy(
|
| }
|
|
|
| ChannelProxy::~ChannelProxy() {
|
| - DCHECK(CalledOnValidThread());
|
| + DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
|
|
|
| Close();
|
| }
|
| @@ -463,7 +463,7 @@ void ChannelProxy::Init(const IPC::ChannelHandle& channel_handle,
|
|
|
| void ChannelProxy::Init(std::unique_ptr<ChannelFactory> factory,
|
| bool create_pipe_now) {
|
| - DCHECK(CalledOnValidThread());
|
| + DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
|
| DCHECK(!did_init_);
|
|
|
| if (create_pipe_now) {
|
| @@ -503,7 +503,7 @@ void ChannelProxy::Flush() {
|
| }
|
|
|
| void ChannelProxy::Close() {
|
| - DCHECK(CalledOnValidThread());
|
| + DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
|
|
|
| // Clear the backpointer to the listener so that any pending calls to
|
| // Context::OnDispatchMessage or OnDispatchError will be ignored. It is
|
| @@ -539,13 +539,13 @@ bool ChannelProxy::Send(Message* message) {
|
| }
|
|
|
| void ChannelProxy::AddFilter(MessageFilter* filter) {
|
| - DCHECK(CalledOnValidThread());
|
| + DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
|
|
|
| context_->AddFilter(filter);
|
| }
|
|
|
| void ChannelProxy::RemoveFilter(MessageFilter* filter) {
|
| - DCHECK(CalledOnValidThread());
|
| + DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
|
|
|
| context_->ipc_task_runner()->PostTask(
|
| FROM_HERE, base::Bind(&Context::OnRemoveFilter, context_,
|
| @@ -567,7 +567,7 @@ void ChannelProxy::GetGenericRemoteAssociatedInterface(
|
| }
|
|
|
| void ChannelProxy::ClearIPCTaskRunner() {
|
| - DCHECK(CalledOnValidThread());
|
| + DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
|
| context()->ClearIPCTaskRunner();
|
| }
|
|
|
|
|