Chromium Code Reviews| Index: mojo/common/data_pipe_utils.cc |
| diff --git a/mojo/common/data_pipe_utils.cc b/mojo/common/data_pipe_utils.cc |
| index 9174cbb8b5a41cc9cda19150c6cabdfc87749918..60f323069ff6904fe47caa784922892f6ffaad83 100644 |
| --- a/mojo/common/data_pipe_utils.cc |
| +++ b/mojo/common/data_pipe_utils.cc |
| @@ -93,6 +93,8 @@ bool MOJO_COMMON_EXPORT BlockingCopyFromString( |
| char_buffer[byte_index++] = *it++; |
| } |
| EndWriteDataRaw(destination.get(), byte_index); |
| + if (it == source.end()) |
|
viettrungluu
2015/04/02 19:54:12
If we want to keep this function around, we really
|
| + return true; |
| } else if (result == MOJO_RESULT_SHOULD_WAIT) { |
| result = Wait(destination.get(), MOJO_HANDLE_SIGNAL_WRITABLE, |
| MOJO_DEADLINE_INDEFINITE, nullptr); |