| Index: net/spdy/bidirectional_stream_spdy_impl.cc
|
| diff --git a/net/spdy/bidirectional_stream_spdy_impl.cc b/net/spdy/bidirectional_stream_spdy_impl.cc
|
| index 4f11cdf3e840b27398b5342d034ba40798ff4dcc..66050fefb51b50e7ce174dcc354fd6997aea6de6 100644
|
| --- a/net/spdy/bidirectional_stream_spdy_impl.cc
|
| +++ b/net/spdy/bidirectional_stream_spdy_impl.cc
|
| @@ -41,7 +41,8 @@ BidirectionalStreamSpdyImpl::BidirectionalStreamSpdyImpl(
|
| weak_factory_(this) {}
|
|
|
| BidirectionalStreamSpdyImpl::~BidirectionalStreamSpdyImpl() {
|
| - Cancel();
|
| + // Sends a RST to the remote if the stream is destroyed before it completes.
|
| + ResetStream();
|
| }
|
|
|
| void BidirectionalStreamSpdyImpl::Start(
|
| @@ -151,15 +152,6 @@ void BidirectionalStreamSpdyImpl::SendvData(
|
| end_stream ? NO_MORE_DATA_TO_SEND : MORE_DATA_TO_SEND);
|
| }
|
|
|
| -void BidirectionalStreamSpdyImpl::Cancel() {
|
| - if (delegate_) {
|
| - delegate_ = nullptr;
|
| - // Cancel any pending callback.
|
| - weak_factory_.InvalidateWeakPtrs();
|
| - }
|
| - ResetStream();
|
| -}
|
| -
|
| NextProto BidirectionalStreamSpdyImpl::GetProtocol() const {
|
| return negotiated_protocol_;
|
| }
|
|
|