Index: net/http/http_cache_transaction.cc |
diff --git a/net/http/http_cache_transaction.cc b/net/http/http_cache_transaction.cc |
index 90a984613adf8d5e58becb8a643e22a33465c667..485ccf5be258a6bee4749da791f50f50625542c0 100644 |
--- a/net/http/http_cache_transaction.cc |
+++ b/net/http/http_cache_transaction.cc |
@@ -182,16 +182,16 @@ void RecordNoStoreHeaderHistogram(int load_flags, |
} |
} |
-base::Value* NetLogAsyncRevalidationInfoCallback( |
+scoped_ptr<base::Value> NetLogAsyncRevalidationInfoCallback( |
const NetLog::Source& source, |
const HttpRequestInfo* request, |
NetLogCaptureMode capture_mode) { |
- base::DictionaryValue* dict = new base::DictionaryValue(); |
- source.AddToEventParameters(dict); |
+ scoped_ptr<base::DictionaryValue> dict(new base::DictionaryValue()); |
+ source.AddToEventParameters(dict.get()); |
dict->SetString("url", request->url.possibly_invalid_spec()); |
dict->SetString("method", request->method); |
- return dict; |
+ return dict.Pass(); |
} |
enum ExternallyConditionalizedType { |
@@ -2611,8 +2611,8 @@ void HttpCache::Transaction::TriggerAsyncValidation() { |
async_revalidation_net_log.source().ToEventParametersCallback()); |
async_revalidation_net_log.BeginEvent( |
NetLog::TYPE_ASYNC_REVALIDATION, |
- base::Bind( |
- &NetLogAsyncRevalidationInfoCallback, net_log_.source(), request_)); |
+ base::Bind(NetLogAsyncRevalidationInfoCallback, net_log_.source(), |
+ request_)); |
base::MessageLoop::current()->PostTask( |
FROM_HERE, |
base::Bind(&HttpCache::PerformAsyncValidation, |