summaryrefslogtreecommitdiffstats
path: root/chrome/common
diff options
context:
space:
mode:
authorrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-14 22:25:49 +0000
committerrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-14 22:25:49 +0000
commit20aa32cf4b322bf7192c119c77a442515d26654e (patch)
treeaaed0fbd47759fb1d4c5b143ee1b70e603b8a2ae /chrome/common
parentfc4a6221c49fe6ce1d4ec87b30f3708dbed5adfa (diff)
downloadchromium_src-20aa32cf4b322bf7192c119c77a442515d26654e.zip
chromium_src-20aa32cf4b322bf7192c119c77a442515d26654e.tar.gz
chromium_src-20aa32cf4b322bf7192c119c77a442515d26654e.tar.bz2
IPC: Handle ERROR_NO_DATA to avoid an assertion.
It is possible to reach ChannelImpl::ProcessConnection when the pipe is being closed, and in that case the attempt to connect fails with ERROR_NO_DATA (documeneted as "the pipe is being closed") BUG=16022 TEST=none Review URL: http://codereview.chromium.org/149436 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20681 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r--chrome/common/ipc_channel_win.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/common/ipc_channel_win.cc b/chrome/common/ipc_channel_win.cc
index 2e287ce..9d1de29 100644
--- a/chrome/common/ipc_channel_win.cc
+++ b/chrome/common/ipc_channel_win.cc
@@ -225,6 +225,9 @@ bool Channel::ChannelImpl::ProcessConnection() {
case ERROR_PIPE_CONNECTED:
waiting_connect_ = false;
break;
+ case ERROR_NO_DATA:
+ // The pipe is being closed.
+ return false;
default:
NOTREACHED();
return false;