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..43dcb585ba8b6856f926f57fa72fbd65034a3448 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) { |
@@ -258,9 +258,9 @@ base::Value* SpdySessionPool::SpdySessionPoolInfoToValue() const { |
const SpdySessionKey& key = it->first; |
const SpdySessionKey& session_key = it->second->spdy_session_key(); |
if (key.Equals(session_key)) |
- list->Append(it->second->GetInfoAsValue()); |
+ list->Append(it->second->GetInfoAsValue().Pass()); |
eroman
2015/05/25 17:50:46
No Pass()
payal.pandey
2015/05/26 06:07:35
Done.
|
} |
- return list; |
+ return list.Pass(); |
} |
void SpdySessionPool::OnIPAddressChanged() { |