| Index: chrome/browser/extensions/api/messaging/native_message_process_host.cc | 
| diff --git a/chrome/browser/extensions/api/messaging/native_message_process_host.cc b/chrome/browser/extensions/api/messaging/native_message_process_host.cc | 
| index d559d2e60da0dcb1dcfb6a29e62a4fd9f97d64ac..bf920fbd98b5353f736f239d42462fefc5fbfb6a 100644 | 
| --- a/chrome/browser/extensions/api/messaging/native_message_process_host.cc | 
| +++ b/chrome/browser/extensions/api/messaging/native_message_process_host.cc | 
| @@ -248,6 +248,8 @@ void NativeMessageProcessHost::HandleReadResult(int result) { | 
| } else if (result == net::ERR_IO_PENDING) { | 
| read_pending_ = true; | 
| } else if (result == 0 || result == net::ERR_CONNECTION_RESET) { | 
| +    // On Windows we get net::ERR_CONNECTION_RESET for a broken pipe, while on | 
| +    // Posix read() returns 0 in that case. | 
| Close(kNativeHostExited); | 
| } else { | 
| LOG(ERROR) << "Error when reading from Native Messaging host: " << result; | 
|  |