| Index: net/spdy/spdy_session_pool.cc
|
| diff --git a/net/spdy/spdy_session_pool.cc b/net/spdy/spdy_session_pool.cc
|
| index 98a162b13482496bd7d0f94971a28ed44aa2e589..43a959ad3fe61dea512cfe42c6ee4139047e4e61 100644
|
| --- a/net/spdy/spdy_session_pool.cc
|
| +++ b/net/spdy/spdy_session_pool.cc
|
| @@ -248,8 +248,8 @@ void SpdySessionPool::CloseAllSessions() {
|
| }
|
| }
|
|
|
| -base::Value* SpdySessionPool::SpdySessionPoolInfoToValue() const {
|
| - base::ListValue* list = new base::ListValue();
|
| +scoped_ptr<base::Value> SpdySessionPool::SpdySessionPoolInfoToValue() const {
|
| + scoped_ptr<base::ListValue> list(new base::ListValue());
|
|
|
| for (AvailableSessionMap::const_iterator it = available_sessions_.begin();
|
| it != available_sessions_.end(); ++it) {
|
| @@ -260,7 +260,7 @@ base::Value* SpdySessionPool::SpdySessionPoolInfoToValue() const {
|
| if (key.Equals(session_key))
|
| list->Append(it->second->GetInfoAsValue());
|
| }
|
| - return list;
|
| + return list.Pass();
|
| }
|
|
|
| void SpdySessionPool::OnIPAddressChanged() {
|
|
|