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

Unified Diff: net/spdy/core/http2_frame_decoder_adapter.cc

Issue 2840563003: Implement SpdyMakeUnique and SpdyWrapUnique. (Closed)
Patch Set: Created 3 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/spdy/core/hpack/hpack_encoder.cc ('k') | net/spdy/core/mock_spdy_framer_visitor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/core/http2_frame_decoder_adapter.cc
diff --git a/net/spdy/core/http2_frame_decoder_adapter.cc b/net/spdy/core/http2_frame_decoder_adapter.cc
index c750519f49ac51e7c58d85d1e7efad8e3867f2d6..09c6c113ab2143812d08c61c0a7420439b893f8d 100644
--- a/net/spdy/core/http2_frame_decoder_adapter.cc
+++ b/net/spdy/core/http2_frame_decoder_adapter.cc
@@ -33,6 +33,7 @@
#include "net/spdy/core/spdy_headers_handler_interface.h"
#include "net/spdy/core/spdy_protocol.h"
#include "net/spdy/platform/api/spdy_estimate_memory_usage.h"
+#include "net/spdy/platform/api/spdy_ptr_util.h"
#include "net/spdy/platform/api/spdy_string.h"
namespace net {
@@ -994,8 +995,7 @@ class Http2DecoderAdapter : public SpdyFramerDecoderAdapter,
std::unique_ptr<SpdyFramerDecoderAdapter> CreateHttp2FrameDecoderAdapter(
SpdyFramer* outer_framer) {
- return std::unique_ptr<SpdyFramerDecoderAdapter>(
- new Http2DecoderAdapter(outer_framer));
+ return SpdyMakeUnique<Http2DecoderAdapter>(outer_framer);
}
} // namespace net
« no previous file with comments | « net/spdy/core/hpack/hpack_encoder.cc ('k') | net/spdy/core/mock_spdy_framer_visitor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698