| Index: net/spdy/core/spdy_header_block.cc
|
| diff --git a/net/spdy/core/spdy_header_block.cc b/net/spdy/core/spdy_header_block.cc
|
| index 8475b2e7a7e545031fa3860bab3da3215f340549..66d6f51b7cd16eaa05cbb15bb08ff4b6c2dfae82 100644
|
| --- a/net/spdy/core/spdy_header_block.cc
|
| +++ b/net/spdy/core/spdy_header_block.cc
|
| @@ -16,6 +16,7 @@
|
| #include "net/http/http_log_util.h"
|
| #include "net/log/net_log_capture_mode.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_utils.h"
|
|
|
| namespace net {
|
| @@ -321,8 +322,8 @@ void SpdyHeaderBlock::AppendHeader(const SpdyStringPiece key,
|
| }
|
|
|
| SpdyHeaderBlock::Storage* SpdyHeaderBlock::GetStorage() {
|
| - if (!storage_) {
|
| - storage_.reset(new Storage);
|
| + if (storage_ == nullptr) {
|
| + storage_ = SpdyMakeUnique<Storage>();
|
| }
|
| return storage_.get();
|
| }
|
|
|