| Index: net/quic/quic_spdy_stream.cc
|
| diff --git a/net/quic/quic_spdy_stream.cc b/net/quic/quic_spdy_stream.cc
|
| index bcb9dc1737003f79333ce5c962f2ce04dbc36164..f0a77d9352795886e334305cb6b399eb29d3e96d 100644
|
| --- a/net/quic/quic_spdy_stream.cc
|
| +++ b/net/quic/quic_spdy_stream.cc
|
| @@ -4,6 +4,8 @@
|
|
|
| #include "net/quic/quic_spdy_stream.h"
|
|
|
| +// TODO(rtenneti): Temporary while investigating crbug.com/585591.
|
| +#include "base/debug/alias.h"
|
| #include "base/logging.h"
|
| #include "base/strings/string_number_conversions.h"
|
| #include "net/quic/quic_bug_tracker.h"
|
| @@ -37,6 +39,21 @@ QuicSpdyStream::QuicSpdyStream(QuicStreamId id, QuicSpdySession* spdy_session)
|
|
|
| QuicSpdyStream::~QuicSpdyStream() {
|
| spdy_session_->UnregisterStreamPriority(id());
|
| + // TODO(rtenneti): Temporary until crbug.com/585591 is solved.
|
| + liveness_ = DEAD;
|
| + // Get callstack, if the object is going away and we are doing a Read().
|
| + bool read_is_progress = read_is_progress_;
|
| + base::debug::Alias(&read_is_progress);
|
| + CHECK(!read_is_progress);
|
| +}
|
| +
|
| +// TODO(rtenneti): Temporary until crbug.com/585591 is solved.
|
| +void QuicSpdyStream::CrashIfInvalid() const {
|
| + Liveness liveness = liveness_;
|
| + if (liveness == ALIVE)
|
| + return;
|
| + base::debug::Alias(&liveness);
|
| + CHECK_EQ(ALIVE, liveness);
|
| }
|
|
|
| void QuicSpdyStream::CloseWriteSide() {
|
|
|