Index: ipc/mojo/ipc_message_pipe_reader.cc |
diff --git a/ipc/mojo/ipc_message_pipe_reader.cc b/ipc/mojo/ipc_message_pipe_reader.cc |
index 35ba7fd63973b936a0fc5ae3abe0a2af87c6085e..44bd10a8f7f99dd5c4eeff69cd7db728bd42e1b0 100644 |
--- a/ipc/mojo/ipc_message_pipe_reader.cc |
+++ b/ipc/mojo/ipc_message_pipe_reader.cc |
@@ -152,14 +152,9 @@ void MessagePipeReader::ReadAvailableMessages() { |
if (read_result == MOJO_RESULT_SHOULD_WAIT) |
break; |
if (read_result != MOJO_RESULT_OK) { |
- // FAILED_PRECONDITION means that all the received messages |
- // got consumed and the peer is already closed. |
- if (read_result != MOJO_RESULT_FAILED_PRECONDITION) { |
- DLOG(WARNING) |
- << "Pipe got error from ReadMessage(). Closing: " << read_result; |
- OnPipeError(read_result); |
- } |
- |
+ DLOG(WARNING) |
+ << "Pipe got error from ReadMessage(). Closing: " << read_result; |
+ OnPipeError(read_result); |
Close(); |
break; |
} |