Remove usages of QuicMakeUnique, Http2MakeUnique, SpdyMakeUnique. This is made possible by all embedders finally supporting C++14's std::make_unique, which is already used in more than 100 files in quic/. gfe-relnote: n/a, no functional change. PiperOrigin-RevId: 273935577 Change-Id: Icd6dd234422f286d897ea13ae609a67310f96380
diff --git a/spdy/core/spdy_protocol.cc b/spdy/core/spdy_protocol.cc index dae7006..0ab6737 100644 --- a/spdy/core/spdy_protocol.cc +++ b/spdy/core/spdy_protocol.cc
@@ -8,7 +8,6 @@ #include <ostream> #include "net/third_party/quiche/src/spdy/platform/api/spdy_bug_tracker.h" -#include "net/third_party/quiche/src/spdy/platform/api/spdy_ptr_util.h" #include "net/third_party/quiche/src/spdy/platform/api/spdy_string_utils.h" namespace spdy { @@ -295,7 +294,7 @@ SpdyDataIR::SpdyDataIR(SpdyStreamId stream_id, std::string data) : SpdyFrameWithFinIR(stream_id), - data_store_(SpdyMakeUnique<std::string>(std::move(data))), + data_store_(std::make_unique<std::string>(std::move(data))), data_(data_store_->data()), data_len_(data_store_->size()), padded_(false), @@ -415,7 +414,7 @@ SpdyContinuationIR::SpdyContinuationIR(SpdyStreamId stream_id) : SpdyFrameIR(stream_id), end_headers_(false) { - encoding_ = SpdyMakeUnique<std::string>(); + encoding_ = std::make_unique<std::string>(); } SpdyContinuationIR::~SpdyContinuationIR() = default;