Chromium Code Reviews| Index: net/websockets/websocket_channel.cc |
| diff --git a/net/websockets/websocket_channel.cc b/net/websockets/websocket_channel.cc |
| index 7efc5709d7fe61d8ad1e9003b84696330871aaf3..e07644668bb0d24c7a1a2e76ef6a23f270d6a7f4 100644 |
| --- a/net/websockets/websocket_channel.cc |
| +++ b/net/websockets/websocket_channel.cc |
| @@ -407,7 +407,8 @@ void WebSocketChannel::SendFlowControl(int64 quota) { |
| const size_t bytes_to_send = |
| std::min(base::checked_cast<size_t>(quota), data_size); |
| const bool final = front.final() && data_size == bytes_to_send; |
| - const char* data = front.data()->data() + front.offset(); |
| + const char* data = front.data() ? |
| + front.data()->data() + front.offset() : NULL; |
| const std::vector<char> data_vector(data, data + bytes_to_send); |
|
Adam Rice
2014/04/28 04:30:08
It would be nice to have a check like
if (bytes_t
yhirano
2014/04/28 04:38:16
Done.
|
| DVLOG(3) << "Sending frame previously split due to quota to the " |
| << "renderer: quota=" << quota << " data_size=" << data_size |