| Index: net/disk_cache/simple/simple_net_log_parameters.cc
|
| diff --git a/net/disk_cache/simple/simple_net_log_parameters.cc b/net/disk_cache/simple/simple_net_log_parameters.cc
|
| index f3d9fe5b40ee95fee8cd38d9b21b81a8576f9e84..8fe57f50d3a76fb394a7d65fc3ce71b8e0dc8409 100644
|
| --- a/net/disk_cache/simple/simple_net_log_parameters.cc
|
| +++ b/net/disk_cache/simple/simple_net_log_parameters.cc
|
| @@ -15,24 +15,24 @@
|
|
|
| namespace {
|
|
|
| -base::Value* NetLogSimpleEntryConstructionCallback(
|
| +scoped_ptr<base::Value> NetLogSimpleEntryConstructionCallback(
|
| const disk_cache::SimpleEntryImpl* entry,
|
| net::NetLogCaptureMode capture_mode) {
|
| - base::DictionaryValue* dict = new base::DictionaryValue();
|
| + scoped_ptr<base::DictionaryValue> dict(new base::DictionaryValue());
|
| dict->SetString("entry_hash",
|
| base::StringPrintf("%#016" PRIx64, entry->entry_hash()));
|
| - return dict;
|
| + return dict.Pass();
|
| }
|
|
|
| -base::Value* NetLogSimpleEntryCreationCallback(
|
| +scoped_ptr<base::Value> NetLogSimpleEntryCreationCallback(
|
| const disk_cache::SimpleEntryImpl* entry,
|
| int net_error,
|
| net::NetLogCaptureMode /* capture_mode */) {
|
| - base::DictionaryValue* dict = new base::DictionaryValue();
|
| + scoped_ptr<base::DictionaryValue> dict(new base::DictionaryValue());
|
| dict->SetInteger("net_error", net_error);
|
| if (net_error == net::OK)
|
| dict->SetString("key", entry->key());
|
| - return dict;
|
| + return dict.Pass();
|
| }
|
|
|
| } // namespace
|
|
|