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

Unified Diff: net/disk_cache/tracing_cache_backend.cc

Issue 20737002: Change the API of disk_cache::CreateCacheBackend to use scoped_ptr (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix new test Created 7 years, 5 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
« no previous file with comments | « net/disk_cache/tracing_cache_backend.h ('k') | net/http/http_cache.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/tracing_cache_backend.cc
diff --git a/net/disk_cache/tracing_cache_backend.cc b/net/disk_cache/tracing_cache_backend.cc
index b10c974b8f1cd4c85785f4e3aa3a16f93e1d4ef9..4966133f00db9073a40db40b8ff6f7fdbabdeef4 100644
--- a/net/disk_cache/tracing_cache_backend.cc
+++ b/net/disk_cache/tracing_cache_backend.cc
@@ -176,8 +176,8 @@ EntryProxy::~EntryProxy() {
}
}
-TracingCacheBackend::TracingCacheBackend(Backend* backend)
- : backend_(backend) {
+TracingCacheBackend::TracingCacheBackend(scoped_ptr<Backend> backend)
+ : backend_(backend.Pass()) {
}
TracingCacheBackend::~TracingCacheBackend() {
« no previous file with comments | « net/disk_cache/tracing_cache_backend.h ('k') | net/http/http_cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698