| Index: net/spdy/spdy_header_block.cc
|
| diff --git a/net/spdy/spdy_header_block.cc b/net/spdy/spdy_header_block.cc
|
| index 92c6234b9446d885c5160ade6a423a58e354e130..b7bf1d48708e1b43de1afcc8877bf6a9b2c6e1a4 100644
|
| --- a/net/spdy/spdy_header_block.cc
|
| +++ b/net/spdy/spdy_header_block.cc
|
| @@ -9,18 +9,19 @@
|
|
|
| namespace net {
|
|
|
| -base::Value* SpdyHeaderBlockNetLogCallback(const SpdyHeaderBlock* headers,
|
| - NetLogCaptureMode capture_mode) {
|
| - base::DictionaryValue* dict = new base::DictionaryValue();
|
| - base::DictionaryValue* headers_dict = new base::DictionaryValue();
|
| +scoped_ptr<base::Value> SpdyHeaderBlockNetLogCallback(
|
| + const SpdyHeaderBlock* headers,
|
| + NetLogCaptureMode capture_mode) {
|
| + scoped_ptr<base::DictionaryValue> dict(new base::DictionaryValue());
|
| + scoped_ptr<base::DictionaryValue> headers_dict(new base::DictionaryValue());
|
| for (SpdyHeaderBlock::const_iterator it = headers->begin();
|
| it != headers->end(); ++it) {
|
| headers_dict->SetWithoutPathExpansion(
|
| it->first, new base::StringValue(ElideHeaderValueForNetLog(
|
| capture_mode, it->first, it->second)));
|
| }
|
| - dict->Set("headers", headers_dict);
|
| - return dict;
|
| + dict->Set("headers", headers_dict.Pass());
|
| + return dict.Pass();
|
| }
|
|
|
| bool SpdyHeaderBlockFromNetLogParam(
|
|
|