Index: net/quic/quic_connection.h |
diff --git a/net/quic/quic_connection.h b/net/quic/quic_connection.h |
index a7e8a7e0f89c6cd19ec720023e10117046bfff71..e92d6d0406635d6378eeb935582733f2132c3ae0 100644 |
--- a/net/quic/quic_connection.h |
+++ b/net/quic/quic_connection.h |
@@ -357,7 +357,7 @@ class NET_EXPORT_PRIVATE QuicConnection |
visitor_ = visitor; |
} |
void set_debug_visitor(QuicConnectionDebugVisitor* debug_visitor) { |
- debug_visitor_ = debug_visitor; |
+ debug_visitor_.reset(debug_visitor); |
packet_generator_.set_debug_delegate(debug_visitor); |
sent_packet_manager_.set_debug_delegate(debug_visitor); |
} |
@@ -719,7 +719,7 @@ class NET_EXPORT_PRIVATE QuicConnection |
scoped_ptr<QuicAlarm> ping_alarm_; |
QuicConnectionVisitorInterface* visitor_; |
- QuicConnectionDebugVisitor* debug_visitor_; |
+ scoped_ptr<QuicConnectionDebugVisitor> debug_visitor_; |
QuicPacketGenerator packet_generator_; |
// Network idle time before we kill of this connection. |