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..dffaf42153310decb5eb4025d24022455a7330f7 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 |