diff options
author | levin@chromium.org <levin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-22 00:48:15 +0000 |
---|---|---|
committer | levin@chromium.org <levin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-22 00:48:15 +0000 |
commit | 4b4172299b3b74557ba20d3d8c87d811cf502f39 (patch) | |
tree | 99448b8838e18fefe7ab4b247d381c078a5bc83d /ipc | |
parent | 827ea2449764f84344a5e1d5c3b650f29cf2571f (diff) | |
download | chromium_src-4b4172299b3b74557ba20d3d8c87d811cf502f39.zip chromium_src-4b4172299b3b74557ba20d3d8c87d811cf502f39.tar.gz chromium_src-4b4172299b3b74557ba20d3d8c87d811cf502f39.tar.bz2 |
Revert "Const-ify RefCountedThreadSafe::AddRef and Release."
This reverts commit b7ce919957536ceb0cfac1709bc779fd086b6ce8.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63459 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ipc')
-rw-r--r-- | ipc/ipc_channel_proxy.cc | 2 | ||||
-rw-r--r-- | ipc/ipc_channel_proxy.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/ipc/ipc_channel_proxy.cc b/ipc/ipc_channel_proxy.cc index dcc66aad..feca4eb 100644 --- a/ipc/ipc_channel_proxy.cc +++ b/ipc/ipc_channel_proxy.cc @@ -54,7 +54,7 @@ bool ChannelProxy::MessageFilter::OnMessageReceived(const Message& message) { return false; } -void ChannelProxy::MessageFilter::OnDestruct() const { +void ChannelProxy::MessageFilter::OnDestruct() { delete this; } diff --git a/ipc/ipc_channel_proxy.h b/ipc/ipc_channel_proxy.h index 53a39b4..1ce9986 100644 --- a/ipc/ipc_channel_proxy.h +++ b/ipc/ipc_channel_proxy.h @@ -87,11 +87,11 @@ class ChannelProxy : public Message::Sender { // Called when the message filter is about to be deleted. This gives // derived classes the option of controlling which thread they're deleted // on etc. - virtual void OnDestruct() const; + virtual void OnDestruct(); }; struct MessageFilterTraits { - static void Destruct(const MessageFilter* filter) { + static void Destruct(MessageFilter* filter) { filter->OnDestruct(); } }; |