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

Unified Diff: net/tools/crash_cache/crash_cache.cc

Issue 12794003: Initialize the simple cache backend at runtime. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 9 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
« net/disk_cache/simple/simple_backend_impl.h ('K') | « net/net.gyp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/crash_cache/crash_cache.cc
===================================================================
--- net/tools/crash_cache/crash_cache.cc (revision 188696)
+++ net/tools/crash_cache/crash_cache.cc (working copy)
@@ -138,9 +138,9 @@
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());
+ int rv = disk_cache::CreateCacheBackendWithFlags(
+ net::DISK_CACHE, path, size, false, disk_cache::kNoRandom,
+ thread->message_loop_proxy(), NULL, cache, cb->callback());
return (cb->GetResult(rv) == net::OK && !(*cache)->GetEntryCount());
}
« net/disk_cache/simple/simple_backend_impl.h ('K') | « net/net.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698