Index: net/tools/quic/quic_dispatcher.cc |
diff --git a/net/tools/quic/quic_dispatcher.cc b/net/tools/quic/quic_dispatcher.cc |
index 6d08fbe2dd8e9d22fe10df7d02c0729e4a372090..7c7a7b284c63a910619068edf51700290ea30a6c 100644 |
--- a/net/tools/quic/quic_dispatcher.cc |
+++ b/net/tools/quic/quic_dispatcher.cc |
@@ -41,15 +41,16 @@ class DeleteSessionsAlarm : public QuicAlarm::Delegate { |
} // namespace |
-QuicDispatcher::QuicDispatcher(const QuicConfig& config, |
- const QuicCryptoServerConfig* crypto_config, |
- const QuicVersionVector& supported_versions, |
- QuicConnectionHelperInterface* helper) |
+QuicDispatcher::QuicDispatcher( |
+ const QuicConfig& config, |
+ const QuicCryptoServerConfig* crypto_config, |
+ const QuicVersionVector& supported_versions, |
+ std::unique_ptr<QuicConnectionHelperInterface> helper) |
: config_(config), |
crypto_config_(crypto_config), |
compressed_certs_cache_( |
QuicCompressedCertsCache::kQuicCompressedCertsCacheSize), |
- helper_(helper), |
+ helper_(std::move(helper)), |
delete_sessions_alarm_( |
helper_->CreateAlarm(new DeleteSessionsAlarm(this))), |
supported_versions_(supported_versions), |