diff options
author | jar@google.com <jar@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-07-30 06:58:56 +0000 |
---|---|---|
committer | jar@google.com <jar@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-07-30 06:58:56 +0000 |
commit | 7622bd0c36e11b0108d3a8dd256211c05ddf5ff5 (patch) | |
tree | 90863e4ca076ab3b75c8441fb06ea0fb55e40860 /chrome/common | |
parent | 3db1536436d21dac66de1414a40a57560b7eee96 (diff) | |
download | chromium_src-7622bd0c36e11b0108d3a8dd256211c05ddf5ff5.zip chromium_src-7622bd0c36e11b0108d3a8dd256211c05ddf5ff5.tar.gz chromium_src-7622bd0c36e11b0108d3a8dd256211c05ddf5ff5.tar.bz2 |
M base/message_loop.h
M base/message_loop.cc
M chrome/common/ipc_sync_channel.cc
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r-- | chrome/common/ipc_sync_channel.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/chrome/common/ipc_sync_channel.cc b/chrome/common/ipc_sync_channel.cc index bbd7a23..1dc106c 100644 --- a/chrome/common/ipc_sync_channel.cc +++ b/chrome/common/ipc_sync_channel.cc @@ -445,11 +445,10 @@ bool SyncChannel::Send(IPC::Message* message) { // shutdown the nested loop when there are no more messages. pump_messages_events_.push(pump_messages_event); bool old_state = MessageLoop::current()->NestableTasksAllowed(); - // Insert a Quit message so that we just flush the MessageLoop without - // letting the MessageLoop wait for more messages. - MessageLoop::current()->Quit(); MessageLoop::current()->SetNestableTasksAllowed(true); - MessageLoop::current()->Run(); + // Process a message, but come right back out of the MessageLoop (don't + // loop, sleep, or wait for a kMsgQuit). + MessageLoop::current()->RunOnce(); MessageLoop::current()->SetNestableTasksAllowed(old_state); pump_messages_events_.pop(); } else { |