diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-24 22:31:25 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-24 22:31:25 +0000 |
commit | d3fc2565089f8471ddc4eaae1b0bd78d40981547 (patch) | |
tree | 30305c56773ae5e3cfb9d9d8f697cadfff192d6f /chrome/common/child_thread.cc | |
parent | 8890152cfef0f04a00a06f7bc789a09677f22ac0 (diff) | |
download | chromium_src-d3fc2565089f8471ddc4eaae1b0bd78d40981547.zip chromium_src-d3fc2565089f8471ddc4eaae1b0bd78d40981547.tar.gz chromium_src-d3fc2565089f8471ddc4eaae1b0bd78d40981547.tar.bz2 |
Keeping track of whether WebKit is in the callstack using RenderThread doesn't work when there are Send calls to plugins (i.e. Gears). So instead, just use PostNonNestableTask to delete RenderWidget. I
(Note I still don't know how my change affected this, it seems to have been broken before as well.)
BUG=7951
Review URL: http://codereview.chromium.org/28090
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10298 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/child_thread.cc')
-rw-r--r-- | chrome/common/child_thread.cc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/chrome/common/child_thread.cc b/chrome/common/child_thread.cc index a37310d62..d1a9893 100644 --- a/chrome/common/child_thread.cc +++ b/chrome/common/child_thread.cc @@ -14,7 +14,6 @@ ChildThread::ChildThread(Thread::Options options) : Thread("Chrome_ChildThread"), owner_loop_(MessageLoop::current()), - in_send_(0), options_(options) { DCHECK(owner_loop_); channel_name_ = CommandLine::ForCurrentProcess()->GetSwitchValue( @@ -47,10 +46,7 @@ bool ChildThread::Send(IPC::Message* msg) { return false; } - in_send_++; - bool rv = channel_->Send(msg); - in_send_--; - return rv; + return channel_->Send(msg); } void ChildThread::AddRoute(int32 routing_id, IPC::Channel::Listener* listener) { |