Chromium Code Reviews| Index: net/quic/quic_stream_factory.cc |
| diff --git a/net/quic/quic_stream_factory.cc b/net/quic/quic_stream_factory.cc |
| index d4dce694cf9471cd02a74bb9db352d876de1ae05..6cb98c175c610ebd9bf53c4641bce066b090d02f 100644 |
| --- a/net/quic/quic_stream_factory.cc |
| +++ b/net/quic/quic_stream_factory.cc |
| @@ -925,8 +925,9 @@ void QuicStreamFactory::CloseAllSessions(int error) { |
| DCHECK(all_sessions_.empty()); |
| } |
| -base::Value* QuicStreamFactory::QuicStreamFactoryInfoToValue() const { |
| - base::ListValue* list = new base::ListValue(); |
| +scoped_ptr<base::Value> QuicStreamFactory::QuicStreamFactoryInfoToValue() |
| + const { |
| + scoped_ptr<base::ListValue> list(new base::ListValue()); |
| for (SessionMap::const_iterator it = active_sessions_.begin(); |
| it != active_sessions_.end(); ++it) { |
| @@ -940,10 +941,10 @@ base::Value* QuicStreamFactory::QuicStreamFactoryInfoToValue() const { |
| alias_it != aliases.end(); ++alias_it) { |
| hosts.insert(alias_it->host_port_pair()); |
| } |
| - list->Append(session->GetInfoAsValue(hosts)); |
| + list->Append(session->GetInfoAsValue(hosts).Pass()); |
|
eroman
2015/05/25 17:48:56
remove .Pass()
payal.pandey
2015/05/26 06:24:15
Done.
payal.pandey
2015/05/26 06:24:15
Done.
|
| } |
| } |
| - return list; |
| + return list.Pass(); |
| } |
| void QuicStreamFactory::ClearCachedStatesInCryptoConfig() { |