Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(788)

Unified Diff: net/tools/quic/quic_simple_server.cc

Issue 1907773002: Make QuicDispatcher's helper argument be a unique_ptr to make ownership (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@119678304
Patch Set: Rebase Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/tools/quic/quic_server_test.cc ('k') | net/tools/quic/quic_simple_server_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_simple_server.cc
diff --git a/net/tools/quic/quic_simple_server.cc b/net/tools/quic/quic_simple_server.cc
index ecc15dc6547d70d44a36211c41660c9c997f16c2..765745bcdad6f71ba3ea8b448da3dcad6a50a485 100644
--- a/net/tools/quic/quic_simple_server.cc
+++ b/net/tools/quic/quic_simple_server.cc
@@ -37,7 +37,8 @@ class SimpleQuicDispatcher : public QuicDispatcher {
const QuicCryptoServerConfig* crypto_config,
const QuicVersionVector& supported_versions,
QuicConnectionHelperInterface* helper)
- : QuicDispatcher(config, crypto_config, supported_versions, helper) {}
+ : QuicDispatcher(config, crypto_config, supported_versions,
+ std::unique_ptr<QuicConnectionHelperInterface>(helper)) {}
protected:
QuicServerSessionBase* CreateQuicSession(
« no previous file with comments | « net/tools/quic/quic_server_test.cc ('k') | net/tools/quic/quic_simple_server_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698