Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(370)

Unified Diff: chrome/browser/renderer_host/resource_message_filter.cc

Issue 4192012: Convert implicit scoped_refptr constructor calls to explicit ones, part 1 (Closed) Base URL: http://git.chromium.org/git/chromium.git
Patch Set: fix presubmit Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/renderer_host/resource_message_filter.cc
diff --git a/chrome/browser/renderer_host/resource_message_filter.cc b/chrome/browser/renderer_host/resource_message_filter.cc
index d6334fd916700e137812158e50c81cf15bc290e4..adbe1cf0fef8616f3d2b4aabceaba894041b096b 100644
--- a/chrome/browser/renderer_host/resource_message_filter.cc
+++ b/chrome/browser/renderer_host/resource_message_filter.cc
@@ -1478,7 +1478,7 @@ void ResourceMessageFilter::OnCacheableMetadataAvailable(
http_transaction_factory()->GetCache();
DCHECK(cache);
- scoped_refptr<net::IOBuffer> buf = new net::IOBuffer(data.size());
+ scoped_refptr<net::IOBuffer> buf(new net::IOBuffer(data.size()));
memcpy(buf->data(), &data.front(), data.size());
cache->WriteMetadata(
url, base::Time::FromDoubleT(expected_response_time), buf, data.size());

Powered by Google App Engine
This is Rietveld 408576698