Index: net/disk_cache/memory/mem_entry_impl.cc |
diff --git a/net/disk_cache/memory/mem_entry_impl.cc b/net/disk_cache/memory/mem_entry_impl.cc |
index a5d9086ec0e93f913146137dfb61a9b0863ef437..f39e09d8987e3eca8437c76a59836a0bb1ce8749 100644 |
--- a/net/disk_cache/memory/mem_entry_impl.cc |
+++ b/net/disk_cache/memory/mem_entry_impl.cc |
@@ -45,14 +45,14 @@ std::string GenerateChildName(const std::string& base_name, int child_id) { |
// Returns NetLog parameters for the creation of a child MemEntryImpl. Separate |
// function needed because child entries don't suppport GetKey(). |
-base::Value* NetLogChildEntryCreationCallback( |
+scoped_ptr<base::Value> NetLogChildEntryCreationCallback( |
const disk_cache::MemEntryImpl* parent, |
int child_id, |
net::NetLogCaptureMode /* capture_mode */) { |
- base::DictionaryValue* dict = new base::DictionaryValue(); |
+ scoped_ptr<base::DictionaryValue> dict(new base::DictionaryValue()); |
dict->SetString("key", GenerateChildName(parent->GetKey(), child_id)); |
dict->SetBoolean("created", true); |
- return dict; |
+ return dict.Pass(); |
} |
} // namespace |
@@ -565,7 +565,7 @@ bool MemEntryImpl::InitChildEntry(MemEntryImpl* parent, int child_id, |
net::NetLog::SOURCE_MEMORY_CACHE_ENTRY); |
net_log_.BeginEvent( |
net::NetLog::TYPE_DISK_CACHE_MEM_ENTRY_IMPL, |
- base::Bind(&NetLogChildEntryCreationCallback, parent, child_id_)); |
+ base::Bind(NetLogChildEntryCreationCallback, parent, child_id_)); |
parent_ = parent; |
child_id_ = child_id; |