Index: net/tools/crash_cache/crash_cache.cc |
=================================================================== |
--- net/tools/crash_cache/crash_cache.cc (revision 190930) |
+++ net/tools/crash_cache/crash_cache.cc (working copy) |
@@ -138,10 +138,13 @@ |
disk_cache::Backend** cache, |
net::TestCompletionCallback* cb) { |
int size = 1024 * 1024; |
- int rv = disk_cache::BackendImpl::CreateBackend( |
- path, false, size, net::DISK_CACHE, disk_cache::kNoRandom, |
- thread->message_loop_proxy(), NULL, cache, cb->callback()); |
- |
+ disk_cache::BackendImpl* backend = new disk_cache::BackendImpl(path, |
rvargas (doing something else)
2013/03/28 03:12:45
nit: first arg goes down
pasko-google - do not use
2013/03/28 21:41:42
sry, that style probably comes from Java, I do not
|
+ thread->message_loop_proxy(), NULL); |
+ backend->SetMaxSize(size); |
+ backend->SetType(net::DISK_CACHE); |
+ backend->SetFlags(disk_cache::kNoRandom); |
+ int rv = backend->Init(cb->callback()); |
+ *cache = backend; |
return (cb->GetResult(rv) == net::OK && !(*cache)->GetEntryCount()); |
} |